A platform for community discussion. Free, open, simple.
REFACTOR: remove unnecessary parentheses attempt 2 (follow-up on 154f503d)
Neil Lalonde7db2dc717e67
diff --git a/app/models/post.rb b/app/models/post.rbindex 8e03538f527..0441bcb3273 100644--- a/app/models/post.rb+++ b/app/models/post.rb@@ -215,8 +215,7 @@ class Post < ActiveRecord::Baseenddef matches_recent_post?- post_id = $redis.get(unique_post_key)- post_id != (nil) && post_id.to_i != (id)+ $redis.get(unique_post_key)&.to_i != idenddef raw_hash