mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
enforce coding convention
replaced every `and` by `&&` and every `or` by `||`
This commit is contained in:
@@ -47,7 +47,7 @@ class RateLimiter
|
||||
rate_limiter = send(limiter_method)
|
||||
return unless rate_limiter.present?
|
||||
|
||||
if @performed.present? and @performed[limiter_method]
|
||||
if @performed.present? && @performed[limiter_method]
|
||||
rate_limiter.rollback!
|
||||
@performed[limiter_method] = false
|
||||
end
|
||||
|
Reference in New Issue
Block a user