]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup: Remove redundant checks from ``SharedWieldableSystem`` (#35466)
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Mon, 24 Feb 2025 19:22:19 +0000 (22:22 +0300)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 19:22:19 +0000 (20:22 +0100)
Cleanup

Content.Shared/Wieldable/SharedWieldableSystem.cs

index b3d2e1bdf153822c45c13d7dbac09bc1f4f44f9a..b4a61444050fe484b9ffae664946fa5c430a934d 100644 (file)
@@ -126,14 +126,12 @@ public abstract class SharedWieldableSystem : EntitySystem
 
     private void OnSpeedModifierWielded(EntityUid uid, SpeedModifiedOnWieldComponent component, ItemWieldedEvent args)
     {
-        if (args.User != null)
-            _movementSpeedModifier.RefreshMovementSpeedModifiers(args.User);
+        _movementSpeedModifier.RefreshMovementSpeedModifiers(args.User);
     }
 
     private void OnSpeedModifierUnwielded(EntityUid uid, SpeedModifiedOnWieldComponent component, ItemUnwieldedEvent args)
     {
-        if (args.User != null)
-            _movementSpeedModifier.RefreshMovementSpeedModifiers(args.User);
+        _movementSpeedModifier.RefreshMovementSpeedModifiers(args.User);
     }
 
     private void OnRefreshSpeedWielded(EntityUid uid, SpeedModifiedOnWieldComponent component, ref HeldRelayedEvent<RefreshMovementSpeedModifiersEvent> args)