mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 13:07:07 +01:00
Simplify a null check
This commit is contained in:
@@ -88,10 +88,8 @@ namespace Tgstation.Server.Host.Security
|
||||
isInstance
|
||||
? InstancePermissionSet
|
||||
: PermissionSet,
|
||||
Array.Empty<object>());
|
||||
|
||||
if (right == null)
|
||||
throw new InvalidOperationException("A user right was null!");
|
||||
Array.Empty<object>())
|
||||
?? throw new InvalidOperationException("A user right was null!");
|
||||
|
||||
return (ulong)right;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user