Skip to content

Commit

Permalink
fix IsNullOrWhiteSpace to IsNullOrEmpty incorrect change
Browse files Browse the repository at this point in the history
  • Loading branch information
Wraith2 committed Mar 15, 2023
1 parent 7645617 commit 2f52403
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -14,7 +14,7 @@ internal static class Validator
{
internal static void ValidateNotNull(object parameter, string name)
{
if (null == parameter)
if (parameter == null)
{
throw ADP.NullArgument(name);
}
Expand All @@ -34,7 +34,7 @@ internal static void ValidateNotNullOrWhitespaceForEach(string[] parameters, str
{
for (int index = 0; index < parameters.Length; index++)
{
if (string.IsNullOrEmpty(parameters[index]))
if (string.IsNullOrWhiteSpace(parameters[index]))
{
throw ADP.NullOrWhitespaceForEach(name);
}
Expand Down

0 comments on commit 2f52403

Please sign in to comment.