Fix CS0642 - Possible mistaken empty statement (#31740)

This commit is contained in:
Mervill
2024-09-02 04:02:16 -07:00
committed by GitHub
parent 7de79fba9c
commit 05d29c8479

View File

@@ -106,7 +106,7 @@ namespace Content.Server.Atmos.EntitySystems
private void OnExamined(EntityUid uid, GasTankComponent component, ExaminedEvent args) private void OnExamined(EntityUid uid, GasTankComponent component, ExaminedEvent args)
{ {
using(args.PushGroup(nameof(GasTankComponent))); using var _ = args.PushGroup(nameof(GasTankComponent));
if (args.IsInDetailsRange) if (args.IsInDetailsRange)
args.PushMarkup(Loc.GetString("comp-gas-tank-examine", ("pressure", Math.Round(component.Air?.Pressure ?? 0)))); args.PushMarkup(Loc.GetString("comp-gas-tank-examine", ("pressure", Math.Round(component.Air?.Pressure ?? 0))));
if (component.IsConnected) if (component.IsConnected)
@@ -348,7 +348,7 @@ namespace Content.Server.Atmos.EntitySystems
if (component.Integrity <= 0) if (component.Integrity <= 0)
{ {
var environment = _atmosphereSystem.GetContainingMixture(owner, false, true); var environment = _atmosphereSystem.GetContainingMixture(owner, false, true);
if(environment != null) if (environment != null)
_atmosphereSystem.Merge(environment, component.Air); _atmosphereSystem.Merge(environment, component.Air);
_audioSys.PlayPvs(component.RuptureSound, Transform(owner).Coordinates, AudioParams.Default.WithVariation(0.125f)); _audioSys.PlayPvs(component.RuptureSound, Transform(owner).Coordinates, AudioParams.Default.WithVariation(0.125f));