REFACTOR: remove unnecessary parentheses attempt 2 (follow-up on 154f503d)

This commit is contained in:
Neil Lalonde 2019-03-13 15:33:18 -04:00
parent 81bf4df1a5
commit 7db2dc717e
1 changed files with 1 additions and 2 deletions

View File

@ -215,8 +215,7 @@ class Post < ActiveRecord::Base
end end
def matches_recent_post? def matches_recent_post?
post_id = $redis.get(unique_post_key) $redis.get(unique_post_key)&.to_i != id
post_id != (nil) && post_id.to_i != (id)
end end
def raw_hash def raw_hash