0
0
Fork 0

Change RuboCop rules to loose (#4464)

This commit is contained in:
Yamagishi Kazutoshi 2017-07-31 22:19:13 +09:00 committed by Eugen Rochko
parent 93aafa8549
commit 3e7a541e09
4 changed files with 9 additions and 8 deletions

View file

@ -90,7 +90,7 @@ class BatchedRemoveStatusService < BaseService
key = FeedManager.instance.key(:home, follower_id)
originals = statuses.reject(&:reblog?)
reblogs = statuses.reject { |s| !s.reblog? }
reblogs = statuses.select(&:reblog?)
# Quickly remove all originals
redis.pipelined do