Skip to content

Commit

Permalink
Delete unused Guard to improve code coverage (#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
ITaluone committed Apr 5, 2022
1 parent ef914ec commit d53e8d9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Src/FluentAssertions/Common/Guard.cs
Expand Up @@ -55,14 +55,6 @@ public static void ThrowIfArgumentContainsNull<T>(IEnumerable<T> values, string
}
}

public static void ThrowIfArgumentContainsNull<T>(IEnumerable<T> values, string paramName, string message)
{
if (values.Any(t => t is null))
{
throw new ArgumentNullException(paramName, message);
}
}

public static void ThrowIfArgumentIsEmpty<T>(IEnumerable<T> values, string paramName, string message)
{
if (!values.Any())
Expand Down

0 comments on commit d53e8d9

Please sign in to comment.