simplify last_notified_id

This commit is contained in:
Neil Lalonde 2017-04-20 15:26:20 -04:00
parent 5d9d2cf287
commit 05efa7ce68
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ module Jobs
end end
def last_notified_id def last_notified_id
(i = $redis.get(self.class.last_notified_key)) && i.to_i $redis.get(self.class.last_notified_key)&.to_i
end end
def last_notified_id=(arg) def last_notified_id=(arg)