From 05efa7ce68809381172b03dbfeed331efd8c03dc Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 20 Apr 2017 15:26:20 -0400 Subject: [PATCH] simplify last_notified_id --- app/jobs/scheduled/pending_flags_reminder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/scheduled/pending_flags_reminder.rb b/app/jobs/scheduled/pending_flags_reminder.rb index 1b8080a049c..895c6c2492a 100644 --- a/app/jobs/scheduled/pending_flags_reminder.rb +++ b/app/jobs/scheduled/pending_flags_reminder.rb @@ -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)