0
0
Fork 0

Fix Performance/DeletePrefix cop (#27448)

This commit is contained in:
Matt Jankowski 2023-10-18 04:32:09 -04:00 committed by GitHub
parent 091a21e1bc
commit 63a2a4b074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View file

@ -51,7 +51,7 @@ class FeaturedTag < ApplicationRecord
private
def strip_name
self.name = name&.strip&.gsub(/\A#/, '')
self.name = name&.strip&.delete_prefix('#')
end
def set_tag