From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 27 Apr 2024 05:08:50 +0000 (+1000) Subject: Remove redundant HasUi (#27381) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=cc2fa6f57e955917d68b3ec52f1d8a552292eb74;p=space-station-14.git Remove redundant HasUi (#27381) Doesn't fix anything but still. --- diff --git a/Content.Shared/UserInterface/ActivatableUISystem.cs b/Content.Shared/UserInterface/ActivatableUISystem.cs index 5d848c0fde..452f08c094 100644 --- a/Content.Shared/UserInterface/ActivatableUISystem.cs +++ b/Content.Shared/UserInterface/ActivatableUISystem.cs @@ -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); }