Update Program.cs

Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2024-11-22 19:17:19 +07:00
parent 9bd1d5346d
commit 5ebc893513

View File

@@ -84,7 +84,7 @@ namespace file_hash_checker
Console.WriteLine(message);
Console.Write("> ");
string data = Console.ReadLine().Trim();
if (data.Length == 0 || data == string.Empty)
if (string.IsNullOrWhiteSpace(data))
InputData(message);
return data;
}