diff options
author | Matt Jankowski <matt@jankowski.online> | 2023-05-02 06:57:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 12:57:11 +0200 |
commit | 88d33f361fcd5de267caa23bd4ad40b5b14dbd45 (patch) | |
tree | ee295d54d0afb5635b6d6248202da5ef5a534059 /lib | |
parent | f50105779b818dd214ea34d0a06a798c80c202a4 (diff) |
Fix Lint/DuplicateBranch cop (#24766)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/maintenance_cli.rb | 4 |
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 |