Fix Performance/DeletePrefix cop (#24796)
This commit is contained in:
parent
05e3abe9d9
commit
668a19a2f3
10 changed files with 9 additions and 24 deletions
|
@ -57,7 +57,7 @@ class WebfingerResource
|
|||
end
|
||||
|
||||
def resource_without_acct_string
|
||||
resource.gsub(/\Aacct:/, '')
|
||||
resource.delete_prefix('acct:')
|
||||
end
|
||||
|
||||
def local_username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue