diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-07-31 22:19:13 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-31 15:19:13 +0200 |
commit | 3e7a541e09ac875be21bea3cf8a444e3228d2a4c (patch) | |
tree | 616d749117905fd68bb35762a208382b0cc1fa20 /app/services | |
parent | 93aafa85496b5e1ae735e174157c3a7e1744ede2 (diff) |
Change RuboCop rules to loose (#4464)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/batched_remove_status_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/batched_remove_status_service.rb b/app/services/batched_remove_status_service.rb index b462154ae..ab810c628 100644 --- a/app/services/batched_remove_status_service.rb +++ b/app/services/batched_remove_status_service.rb @@ -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 |