mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Use var instead of explicit type
Also prevent future issues
This commit is contained in:
1 parent
b918f25443
commit
d8843db3eb
2 files changed
+4
-1
No files matched your search
@@ -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))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user