diff --git a/src/Api/Middleware/CustomIpRateLimitMiddleware.cs b/src/Api/Middleware/CustomIpRateLimitMiddleware.cs index ab6d5e21ae..244e3f3b5a 100644 --- a/src/Api/Middleware/CustomIpRateLimitMiddleware.cs +++ b/src/Api/Middleware/CustomIpRateLimitMiddleware.cs @@ -52,8 +52,7 @@ namespace Bit.Api.Middleware base.LogBlockedRequest(httpContext, identity, counter, rule); var key = $"blockedIp_{identity.ClientIp}"; - int blockedCount; - _memoryCache.TryGetValue(key, out blockedCount); + _memoryCache.TryGetValue(key, out int blockedCount); blockedCount++; if(blockedCount > 10)