diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-17 22:30:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 04:30:23 +0100 |
commit | a6f77aa28ae805e89b0a38c468b7193050174df4 (patch) | |
tree | c1ce6315964b84abd58f07b7a0e5b033c0b2e972 /app/lib | |
parent | e2567df86063b537e4a3ab2afd5c28a54140f720 (diff) |
Autofix Rubocop Lint/AmbiguousOperatorPrecedence (#23681)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/rate_limiter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/rate_limiter.rb b/app/lib/rate_limiter.rb index 0e2c9a894..4a0b35b08 100644 --- a/app/lib/rate_limiter.rb +++ b/app/lib/rate_limiter.rb @@ -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 |