From bf32bb571dfee7e14c91d7542900491fc321b9a8 Mon Sep 17 00:00:00 2001 From: Frank Ray <52075808+FrankRay78@users.noreply.github.com> Date: Sun, 4 Dec 2022 14:15:46 +0000 Subject: [PATCH] Address PR review comment --- .../Internal/Parsing/CommandTreeTokenizer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spectre.Console.Cli/Internal/Parsing/CommandTreeTokenizer.cs b/src/Spectre.Console.Cli/Internal/Parsing/CommandTreeTokenizer.cs index 1f99a6335..900692848 100644 --- a/src/Spectre.Console.Cli/Internal/Parsing/CommandTreeTokenizer.cs +++ b/src/Spectre.Console.Cli/Internal/Parsing/CommandTreeTokenizer.cs @@ -30,7 +30,7 @@ public static CommandTreeTokenizerResult Tokenize(IEnumerable 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));