Autofix Rubocop remaining Layout rules (#23679)
This commit is contained in:
@ -25,6 +25,7 @@ class Api::V1::TagsController < Api::BaseController
|
||||
|
||||
def set_or_create_tag
|
||||
return not_found unless Tag::HASHTAG_NAME_RE.match?(params[:id])
|
||||
|
||||
@tag = Tag.find_normalized(params[:id]) || Tag.new(name: Tag.normalize(params[:id]), display_name: params[:id])
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user