Skip to content

Commit 6831727

Browse files
Lorenzo Solano MartinezLorenzo Solano Martinez
authored andcommitted
Removing build warnings
1 parent 26434e9 commit 6831727

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Validations/Arguments.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ private static TNullable CompliesWithExpected<TNullable>(
606606
[NotNull] string paramName,
607607
bool expected) where TNullable : class
608608
{
609-
TNullable notNullValue = value.Check(nameof(value));
609+
TNullable notNullValue = value.Check();
610610
Func<TNullable, bool> notNullValidator = validator.Check();
611611
string notNullParamName = paramName.CheckParamName();
612612
string notNullPreconditionDescription

src/Validations/ArgumentsHelpers/Extensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal static string CheckNotWhiteSpaceOnly(this string value, string paramNam
5353
[return: NotNull]
5454
internal static string CheckNotZeroLengthOrWhiteSpaceOnly(
5555
[NotNull] this string? value, string paramName = "")
56-
=> Check(value, paramName)
56+
=> CheckWithParamName(value, paramName)
5757
.CheckNotZeroLength(paramName)
5858
.CheckNotWhiteSpaceOnly(paramName);
5959

@@ -94,7 +94,7 @@ internal static TEnumType ValueOrThrowIfNotDefined<TEnumType>(this TEnumType val
9494
internal static TType[] ValueOrThrowIfNullOrWithLessThanElements<TType>(
9595
[NotNull] this TType[]? value, int minimumElements, string paramName)
9696
{
97-
_ = OutOfRangeChecks.GreaterThanOrEqualTo(Check(value, paramName).Length, minimumElements, paramName);
97+
_ = OutOfRangeChecks.GreaterThanOrEqualTo(CheckWithParamName(value, paramName).Length, minimumElements, paramName);
9898

9999
return value!;
100100
}

src/Validations/ArgumentsHelpers/OutOfRangeChecks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ internal static TComparable Between<TComparable>(
104104
string notNullParamName = paramName.CheckParamName();
105105

106106
return range.Contains(
107-
value.Check(notNullParamName),
107+
value.CheckWithParamName(notNullParamName),
108108
notNullParamName,
109109
customMessage: null!);
110110

0 commit comments

Comments
 (0)