Use var instead of explicit type

Also prevent future issues
This commit is contained in:
miniduikboot committed 2021-07-05 20:36:56 +02:00
1 parent b918f25443
commit d8843db3eb
2 files changed
+4 -1

No files matched your search

+3
View 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
@@ -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))
{