mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
REFACTOR: remove unnecessary parentheses
This commit is contained in:
@ -215,8 +215,7 @@ class Post < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def 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 != id
|
||||
end
|
||||
|
||||
def raw_hash
|
||||
|
Reference in New Issue
Block a user