Skip to content

Commit 2cd65c9

Browse files
committed
Restore mutation score to 100%
1 parent 6d85c7d commit 2cd65c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Log4NetTextFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private static void WriteDomainAndUserName(LogEvent logEvent, XmlWriter writer)
140140
{
141141
// See https://github.com/serilog/serilog-enrichers-environment/blob/3fc7cf78c5f34816633000ae74d846033498e44b/src/Serilog.Enrichers.Environment/Enrichers/EnvironmentUserNameEnricher.cs#L53
142142
var separatorIndex = userNameProperty.IndexOf(@"\", StringComparison.OrdinalIgnoreCase);
143-
if (separatorIndex >= 0)
143+
if (separatorIndex != -1)
144144
{
145145
writer.WriteAttributeString("domain", userNameProperty.Substring(0, separatorIndex));
146146
writer.WriteAttributeString("username", userNameProperty.Substring(separatorIndex + 1));

0 commit comments

Comments
 (0)