]> git.deb.at Git - rhonda/impostor.git/commitdiff
Use var instead of explicit type
authorminiduikboot <mini@duikbo.at>
Mon, 5 Jul 2021 18:14:05 +0000 (20:14 +0200)
committerminiduikboot <mini@duikbo.at>
Mon, 5 Jul 2021 18:36:56 +0000 (20:36 +0200)
Also prevent future issues

src/.editorconfig
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs

index da23fd47fd9f7aa7c926ae2cde7831fcc90f988d..054816af2f9217a33fe0911dd9f36c5a282b7044 100644 (file)
@@ -147,6 +147,9 @@ dotnet_diagnostic.RS2008.severity = none
 # IDE0005: Remove unnecessary import
 dotnet_diagnostic.IDE0005.severity = warning
 
+# IDE0007: Use `var` instead of explicit type
+dotnet_diagnostic.IDE0007.severity = warning
+
 # IDE0035: Remove unreachable code
 dotnet_diagnostic.IDE0035.severity = warning
 
index c43be42b7a92246077202615b785de1ee5dbb881..8de79ed829af38ce1b8f61f2a24bf65bef3c788d 100644 (file)
@@ -427,7 +427,7 @@ namespace Impostor.Server.Net.Inner.Objects
                     var i = 1;
                     while (true)
                     {
-                        string text = expected + " " + i;
+                        var text = expected + " " + i;
 
                         if (Game.Players.All(x => x.Character == null || x.Character == this || x.Character.PlayerInfo.PlayerName != text))
                         {