diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-18 06:37:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 12:37:47 +0100 |
commit | e2a3ebb271017d800a448ad3ef3e8324ac1fab3b (patch) | |
tree | ed802f97caaed335d925ea271b244fac029aed5c /app/services/remove_from_followers_service.rb | |
parent | 9ab2a775c9a832fe6320f95e5b405feb93f9eaf3 (diff) |
Autofix Rubocop Style/IfUnlessModifier (#23697)
Diffstat (limited to 'app/services/remove_from_followers_service.rb')
-rw-r--r-- | app/services/remove_from_followers_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/remove_from_followers_service.rb b/app/services/remove_from_followers_service.rb index 3dac5467f..007d5b1fd 100644 --- a/app/services/remove_from_followers_service.rb +++ b/app/services/remove_from_followers_service.rb @@ -7,9 +7,7 @@ class RemoveFromFollowersService < BaseService source_account.passive_relationships.where(account_id: target_accounts).find_each do |follow| follow.destroy - if source_account.local? && !follow.account.local? && follow.account.activitypub? - create_notification(follow) - end + create_notification(follow) if source_account.local? && !follow.account.local? && follow.account.activitypub? end end |