correct return value

This commit is contained in:
Sam 2018-04-25 08:44:07 +10:00
parent 3f6d1a583e
commit aad7df2a1b

View File

@ -81,7 +81,7 @@ class RateLimiter
end
def performed!(raise_error: true)
return if rate_unlimited?
return true if rate_unlimited?
now = Time.now.to_i
if ((max || 0) <= 0) ||