Skip to content

Commit

Permalink
Merge pull request #275 from SUSE/depfu/update/rubocop-performance-1.…
Browse files Browse the repository at this point in the history
…19.1

Update rubocop-performance 1.18.0 → 1.19.1 (minor)
  • Loading branch information
digitaltom authored Oct 15, 2023
2 parents 1ac00b0 + ecaec0e commit 4dc8d1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ GEM
rubocop (~> 1.33)
rubocop-graphql (1.3.0)
rubocop (>= 0.87, < 2)
rubocop-performance (1.18.0)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.21.2)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ def user_params
end

def tags_params
params['tags'].to_s.split(',').map(&:strip).map(&:downcase).compact_blank
params['tags'].to_s.split(',').map { |t| t.strip.downcase }.compact_blank
end
end
2 changes: 1 addition & 1 deletion app/graphql/mutations/update_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def mass_assign_attributes(attributes)
end

def tags_attributes(attributes)
attributes[:tags].to_s.split(',').map(&:strip).map(&:downcase).compact_blank
attributes[:tags].to_s.split(',').map { |t| t.strip.downcase }.compact_blank
end

def user(ident)
Expand Down

0 comments on commit 4dc8d1f

Please sign in to comment.