REFACTOR: remove unnecessary parentheses
This commit is contained in:
parent
28384ba62c
commit
154f503d2e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue