mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove Ruby warning due to assignment in conditional.
This commit is contained in:
parent
ed1a309fe4
commit
704a122656
@ -358,7 +358,10 @@ module Discourse
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.recently_readonly?
|
def self.recently_readonly?
|
||||||
return false unless read_only = last_read_only[$redis.namespace]
|
if (read_only = last_read_only[$redis.namespace]).blank?
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
read_only > 15.seconds.ago
|
read_only > 15.seconds.ago
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user