Autofix Rubocop Lint/AmbiguousOperatorPrecedence (#23681)
This commit is contained in:
@ -48,7 +48,7 @@ class RateLimiter
|
||||
{
|
||||
'X-RateLimit-Limit' => @limit.to_s,
|
||||
'X-RateLimit-Remaining' => (@limit - (redis.get(key) || 0).to_i).to_s,
|
||||
'X-RateLimit-Reset' => (now + (@period - now.to_i % @period)).iso8601(6),
|
||||
'X-RateLimit-Reset' => (now + (@period - (now.to_i % @period))).iso8601(6),
|
||||
}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user