Skip to content

Commit 2eb76fa

Browse files
committed
Remove test which is always true
1 parent 7ef89c3 commit 2eb76fa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Log4NetTextFormatter.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,7 @@ private static void WriteDomainAndUserName(LogEvent logEvent, XmlWriter writer)
145145
{
146146
writer.WriteAttributeString("domain", domain);
147147
}
148-
if (userName != null)
149-
{
150-
writer.WriteAttributeString("username", userName);
151-
}
148+
writer.WriteAttributeString("username", userName);
152149
}
153150
}
154151

0 commit comments

Comments
 (0)