Skip to content

Commit 5ce0748

Browse files
committed
fix warnings
1 parent 2f1d04e commit 5ce0748

File tree

1 file changed

+2
-2
lines changed
  • GitHubIssueFormsParser/src/GitHubIssuesParserCli/ArgumentValidations

1 file changed

+2
-2
lines changed

GitHubIssueFormsParser/src/GitHubIssuesParserCli/ArgumentValidations/Argument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ namespace GitHubIssuesParserCli.ArgumentValidations;
22

33
internal static class Argument
44
{
5-
public static T NotNull<T>([NotNull] this T? value, [CallerArgumentExpression("value")] string name = "")
5+
public static T NotNull<T>([NotNull] this T? value, [CallerArgumentExpression(nameof(value))] string name = "")
66
where T : class
77
{
88
return value ?? throw new ArgumentNullException(name);
99
}
1010

11-
internal static string NotNullOrWhiteSpace([NotNull] this string? value, [CallerArgumentExpression("value")] string name = "")
11+
internal static string NotNullOrWhiteSpace([NotNull] this string? value, [CallerArgumentExpression(nameof(value))] string name = "")
1212
{
1313
var message = $"{name} cannot be null or whitespace.";
1414
return string.IsNullOrWhiteSpace(value)

0 commit comments

Comments
 (0)