0
0
Fork 0

Autofix Rubocop Lint/AmbiguousOperatorPrecedence (#23681)

This commit is contained in:
Nick Schonning 2023-02-17 22:30:23 -05:00 committed by GitHub
parent e2567df860
commit a6f77aa28a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 27 deletions

View file

@ -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