Fix Performance/DeletePrefix cop (#24796)
This commit is contained in:
1 parent
05e3abe9d9
commit
668a19a2f3
10 files changed
+9
-24
No files matched your search
@@ -59,7 +59,7 @@ class AuthorizeInteractionsController < ApplicationController
|
||||
end
|
||||
|
||||
def uri_param
|
||||
params[:uri] || params.fetch(:acct, '').gsub(/\Aacct:/, '')
|
||||
params[:uri] || params.fetch(:acct, '').delete_prefix('acct:')
|
||||
end
|
||||
|
||||
def set_body_classes
|
||||
|
||||
Reference in new issue
Block a user