diff --git a/Content.Server/Access/Systems/AgentIDCardSystem.cs b/Content.Server/Access/Systems/AgentIDCardSystem.cs index 2562aa78a1d..136ae89b4bc 100644 --- a/Content.Server/Access/Systems/AgentIDCardSystem.cs +++ b/Content.Server/Access/Systems/AgentIDCardSystem.cs @@ -109,11 +109,7 @@ private void AfterUIOpen(EntityUid uid, AgentIDCardComponent component, AfterAct return; // Emberfall - Get current number if it exists - uint? currentNumber = null; - if (TryComp(uid, out var comp)) - currentNumber = comp.Number; - - var number = Comp(uid).Number; + var currentNumber = Comp(uid).Number; var state = new AgentIDCardBoundUserInterfaceState( idCard.FullName ?? "",