Skip to content

Commit fdc8822

Browse files
authored
Remove unnecessary null check in SignInManager (#29580)
1 parent 93342c7 commit fdc8822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Identity/Core/src/SignInManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public virtual bool IsSignedIn(ClaimsPrincipal principal)
129129
{
130130
throw new ArgumentNullException(nameof(principal));
131131
}
132-
return principal?.Identities != null &&
132+
return principal.Identities != null &&
133133
principal.Identities.Any(i => i.AuthenticationType == IdentityConstants.ApplicationScheme);
134134
}
135135

0 commit comments

Comments
 (0)