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:
parent
5d9d2cf287
commit
05efa7ce68
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue