]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove redundant HasUi (#27381)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sat, 27 Apr 2024 05:08:50 +0000 (15:08 +1000)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2024 05:08:50 +0000 (15:08 +1000)
Doesn't fix anything but still.

Content.Shared/UserInterface/ActivatableUISystem.cs

index 5d848c0fdec37654d11a7dcab8161b3bdd89ec12..452f08c094b24eca829d1d335f8255aa3267f7a6 100644 (file)
@@ -208,9 +208,6 @@ public sealed partial class ActivatableUISystem : EntitySystem
         if (!Resolve(uid, ref aui, false))
             return;
 
-        if (!_uiSystem.HasUi(uid, aui.Key))
-            return;
-
         _uiSystem.CloseUi(uid, aui.Key);
     }