Remove always false checks (#31708)

This commit is contained in:
Winkarst
2024-09-01 13:45:01 +03:00
committed by GitHub
parent 528fb4ad55
commit ff4c347a21
2 changed files with 1 additions and 20 deletions

View File

@@ -67,11 +67,6 @@ public sealed partial class CargoSystem
private void OnPalletUIOpen(EntityUid uid, CargoPalletConsoleComponent component, BoundUIOpenedEvent args)
{
var player = args.Actor;
if (player == null)
return;
UpdatePalletConsoleInterface(uid);
}
@@ -85,11 +80,6 @@ public sealed partial class CargoSystem
private void OnPalletAppraise(EntityUid uid, CargoPalletConsoleComponent component, CargoPalletAppraiseMessage args)
{
var player = args.Actor;
if (player == null)
return;
UpdatePalletConsoleInterface(uid);
}
@@ -313,11 +303,6 @@ public sealed partial class CargoSystem
private void OnPalletSale(EntityUid uid, CargoPalletConsoleComponent component, CargoPalletSellMessage args)
{
var player = args.Actor;
if (player == null)
return;
var xform = Transform(uid);
if (xform.GridUid is not EntityUid gridUid)