mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
correct return value
This commit is contained in:
parent
3f6d1a583e
commit
aad7df2a1b
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user