]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix CS0642 - Possible mistaken empty statement (#31740)
authorMervill <mervills.email@gmail.com>
Mon, 2 Sep 2024 11:02:16 +0000 (04:02 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Sep 2024 11:02:16 +0000 (13:02 +0200)
Content.Server/Atmos/EntitySystems/GasTankSystem.cs

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