2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

simplify last_notified_id

This commit is contained in:
Neil Lalonde 2017-04-20 15:26:20 -04:00
parent 5d9d2cf287
commit 05efa7ce68

View file

@ -36,7 +36,7 @@ module Jobs
end
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
def last_notified_id=(arg)