Remove Ruby warning due to assignment in conditional.
This commit is contained in:
parent
ed1a309fe4
commit
704a122656
|
@ -358,7 +358,10 @@ module Discourse
|
|||
end
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue