Fix Performance/DeletePrefix cop (#24796)
This commit is contained in:
@@ -100,7 +100,7 @@ class ResolveAccountService < BaseService
|
||||
end
|
||||
|
||||
def split_acct(acct)
|
||||
acct.gsub(/\Aacct:/, '').split('@')
|
||||
acct.delete_prefix('acct:').split('@')
|
||||
end
|
||||
|
||||
def fetch_account!
|
||||
|
Reference in New Issue
Block a user