diff options
author | Quint Guvernator <quint@guvernator.net> | 2018-08-26 13:22:46 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-26 19:22:46 +0200 |
commit | da13fa50215c5153ee199eb8e70e7fa030523a00 (patch) | |
tree | 866797a1dd2739ff58f64c5420a557361eb8af65 /app/lib | |
parent | a791bac153cf979adeaf3024d65917dbd699b5d9 (diff) |
Fix low-hanging rubocop gripes (#8458)
* rubocop: quit being so picky * rubocop: miscellany * rubocop: prefer present to blank
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/feed_manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb index 14cba70dc..b59a9f1cd 100644 --- a/app/lib/feed_manager.rb +++ b/app/lib/feed_manager.rb @@ -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 |