Fix IDE0061

This commit is contained in:
RoosterDragon
2023-02-19 12:32:21 +00:00
committed by Pavel Penev
parent 4f6095c3d4
commit 837c70f857
2 changed files with 7 additions and 4 deletions

View File

@@ -47,10 +47,7 @@ namespace OpenRA.Server
var tracker = messageTracker[conn.PlayerIndex];
tracker.RemoveAll(t => t + settings.FloodLimitInterval < time);
long CalculateRemaining(long cooldown)
{
return (cooldown - time + 999) / 1000;
}
long CalculateRemaining(long cooldown) => (cooldown - time + 999) / 1000;
// Block messages until join cooldown times out
if (!isAdmin && time < settings.FloodLimitJoinCooldown)