Fix CA1052

This commit is contained in:
RoosterDragon
2023-03-12 12:02:27 +00:00
committed by abcdefg30
parent f336a956cf
commit 0958197df2
12 changed files with 15 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Network
{
public enum NatStatus { Enabled, Disabled, NotSupported }
public class Nat
public static class Nat
{
public static NatStatus Status => NatUtility.IsSearching ? natDevice != null ? NatStatus.Enabled : NatStatus.NotSupported : NatStatus.Disabled;