mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Add missing ArgumentNullException
This commit is contained in:
@@ -35,6 +35,10 @@ namespace Tgstation.Server.Host.Security
|
||||
public IdentityCacheObject(ISystemIdentity systemIdentity, IAsyncDelayer asyncDelayer, Action onExpiry, DateTimeOffset expiry)
|
||||
{
|
||||
SystemIdentity = systemIdentity ?? throw new ArgumentNullException(nameof(systemIdentity));
|
||||
|
||||
if (asyncDelayer == null)
|
||||
throw new ArgumentNullException(nameof(asyncDelayer));
|
||||
|
||||
if (onExpiry == null)
|
||||
throw new ArgumentNullException(nameof(onExpiry));
|
||||
var now = DateTimeOffset.Now;
|
||||
|
||||
Reference in New Issue
Block a user