File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
GitHubIssueFormsParser/src/GitHubIssuesParserCli/ArgumentValidations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ namespace GitHubIssuesParserCli.ArgumentValidations;
22
33internal 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 )
You can’t perform that action at this time.
0 commit comments