Skip to content

Commit

Permalink
Nitpick, get rid of the empty string literal :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed May 31, 2016
1 parent bd19528 commit cbfadba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public LoggerConfiguration Override(string source, LoggingLevelSwitch levelSwitc
if (levelSwitch == null) throw new ArgumentNullException(nameof(levelSwitch));

var trimmed = source.Trim();
if (trimmed == "")
if (trimmed.Length == 0)
throw new ArgumentException("A source name must be provided.", nameof(source));

_addOverride(trimmed, levelSwitch);
Expand Down

0 comments on commit cbfadba

Please sign in to comment.