Skip to content

Commit 073cdca

Browse files
Use nameof
1 parent ea53ceb commit 073cdca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AspNetCore/WebApi/src/Asp.Versioning.Mvc/Routing/WithoutApiVersionUrlHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal sealed class WithoutApiVersionUrlHelper : IUrlHelper
2828
return decorated.Action( actionContext );
2929
}
3030

31-
[return: NotNullIfNotNull( "contentPath" )]
31+
[return: NotNullIfNotNull( nameof( contentPath ) )]
3232
public string? Content( string? contentPath )
3333
{
3434
if ( Feature is IApiVersioningFeature feature )

0 commit comments

Comments
 (0)