Skip to content

Commit

Permalink
Code: Fix rubocop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Jan 6, 2025
1 parent 62390dd commit 746e333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/controllers/api/charts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def initialize(params)
@sort = params[:sort]
@author_name = params[:authorName]
@author_handles = params[:authorHandles]
@tags = params[:tags]&.then{_1.split(",").map(&:strip).filter(&:present?)}
@tags = params[:tags]&.then{_1.split(",").map(&:strip).compact_blank}
@rating_max = params[:ratingMax]
@rating_min = params[:ratingMin]
@artist = params[:artist]
Expand Down

0 comments on commit 746e333

Please sign in to comment.