mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Warning if not using 'is not null'
This commit is contained in:
@@ -58,7 +58,7 @@ namespace BTCPayServer.Security.Greenfield
|
||||
{
|
||||
if (Permission.TryParse(claim.Value, out var claimPermission))
|
||||
{
|
||||
if (requireUnscoped && claimPermission.Scope is string)
|
||||
if (requireUnscoped && claimPermission.Scope is not null)
|
||||
continue;
|
||||
if (claimPermission.Contains(permission))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user