We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce330d9 commit 0bffc80Copy full SHA for 0bffc80
src/Components/Authorization/src/AuthenticationState.cs
@@ -16,7 +16,8 @@ public class AuthenticationState
16
/// <param name="user">A <see cref="ClaimsPrincipal"/> representing the user.</param>
17
public AuthenticationState(ClaimsPrincipal user)
18
{
19
- User = user ?? throw new ArgumentNullException(nameof(user));
+ ArgumentNullException.ThrowIfNull(user);
20
+ User = user;
21
}
22
23
/// <summary>
0 commit comments