mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
correct return value
This commit is contained in:
@@ -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) ||
|
||||
|
Reference in New Issue
Block a user