A platform for community discussion. Free, open, simple.
Remove Ruby warning due to assignment in conditional.
Guo Xiang Tan704a122656e7
diff --git a/lib/discourse.rb b/lib/discourse.rbindex cab68f014fa..c78402b5638 100644--- a/lib/discourse.rb+++ b/lib/discourse.rb@@ -358,7 +358,10 @@ module Discourseenddef 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.agoend