Skip to content

Commit

Permalink
Address PR review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankRay78 committed Dec 4, 2022
1 parent 275bbe8 commit bc341f7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -30,7 +30,7 @@ public static CommandTreeTokenizerResult Tokenize(IEnumerable<string> args)

foreach (var arg in args)
{
if (arg == string.Empty)
if (string.IsNullOrEmpty(arg))
{
// Null strings in the args array are still represented as tokens
tokens.Add(new CommandTreeToken(CommandTreeToken.Kind.String, position, string.Empty, string.Empty));
Expand Down

0 comments on commit bc341f7

Please sign in to comment.