Skip to content

Commit bf32bb5

Browse files
committed
Address PR review comment
1 parent 2a31f27 commit bf32bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Spectre.Console.Cli/Internal/Parsing/CommandTreeTokenizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static CommandTreeTokenizerResult Tokenize(IEnumerable<string> args)
3030

3131
foreach (var arg in args)
3232
{
33-
if (arg == string.Empty)
33+
if (string.IsNullOrEmpty(arg))
3434
{
3535
// Null strings in the args array are still represented as tokens
3636
tokens.Add(new CommandTreeToken(CommandTreeToken.Kind.String, position, string.Empty, string.Empty));

0 commit comments

Comments
 (0)