summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatt Jankowski <matt@jankowski.online>2023-05-02 06:57:11 -0400
committerGitHub <noreply@github.com>2023-05-02 12:57:11 +0200
commit88d33f361fcd5de267caa23bd4ad40b5b14dbd45 (patch)
treeee295d54d0afb5635b6d6248202da5ef5a534059 /lib
parentf50105779b818dd214ea34d0a06a798c80c202a4 (diff)
Fix Lint/DuplicateBranch cop (#24766)
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/maintenance_cli.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mastodon/maintenance_cli.rb b/lib/mastodon/maintenance_cli.rb
index ff8f6ddda94..88bd191ea94 100644
--- a/lib/mastodon/maintenance_cli.rb
+++ b/lib/mastodon/maintenance_cli.rb
@@ -664,9 +664,7 @@ module Mastodon
def remove_index_if_exists!(table, name)
ActiveRecord::Base.connection.remove_index(table, name: name)
- rescue ArgumentError
- nil
- rescue ActiveRecord::StatementInvalid
+ rescue ArgumentError, ActiveRecord::StatementInvalid
nil
end
end