Autofix Rubocop Lint/AmbiguousOperatorPrecedence (#23681)
This commit is contained in:
parent
e2567df860
commit
a6f77aa28a
7 changed files with 16 additions and 27 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue