mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 03:25:41 +00:00
Favour string.IsNullOrWhiteSpace over Length == 0 (#42)
This commit is contained in:
parent
b6ec67d91f
commit
244f079133
@ -235,7 +235,7 @@ public static class StringExtensions
|
||||
throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
if (value.Length == 0)
|
||||
if (string.IsNullOrWhiteSpace(value))
|
||||
{
|
||||
// empty string is not palindromic
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user