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 21, 2023
1 parent 2da5f36 commit 47d344a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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
@@ -1,4 +1,11 @@

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace Microsoft.Data.SqlClient
{

Expand Down

0 comments on commit 47d344a

Please sign in to comment.