mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 21:20:46 +01:00
Use pattern matching for null checks (#13793)
Fix the few that slipped through
This commit is contained in:
@@ -87,7 +87,7 @@ public class UserControllerTests
|
||||
Assert.Contains(
|
||||
Validate(userPolicy), v =>
|
||||
v.MemberNames.Contains("PasswordResetProviderId") &&
|
||||
v.ErrorMessage != null &&
|
||||
v.ErrorMessage is not null &&
|
||||
v.ErrorMessage.Contains("required", StringComparison.CurrentCultureIgnoreCase));
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ public class UserControllerTests
|
||||
|
||||
Assert.Contains(Validate(userPolicy), v =>
|
||||
v.MemberNames.Contains("AuthenticationProviderId") &&
|
||||
v.ErrorMessage != null &&
|
||||
v.ErrorMessage is not null &&
|
||||
v.ErrorMessage.Contains("required", StringComparison.CurrentCultureIgnoreCase));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user