Fix low-hanging rubocop gripes (#8458)
* rubocop: quit being so picky * rubocop: miscellany * rubocop: prefer present to blank
This commit is contained in:
parent
a791bac153
commit
da13fa5021
9 changed files with 26 additions and 24 deletions
|
@ -288,7 +288,7 @@ class FeedManager
|
|||
# remains in the set. We could pick a random element, but this
|
||||
# set should generally be small, and it seems ideal to show the
|
||||
# oldest potential such reblog.
|
||||
other_reblog = redis.smembers(reblog_set_key).map(&:to_i).sort.first
|
||||
other_reblog = redis.smembers(reblog_set_key).map(&:to_i).min
|
||||
|
||||
redis.zadd(timeline_key, other_reblog, other_reblog) if other_reblog
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue