Skip to content

Commit

Permalink
convert labels to strings before downcasing
Browse files Browse the repository at this point in the history
  • Loading branch information
bmesuere authored Oct 31, 2023
1 parent 46cca44 commit a0ae688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def deep_merge_configs(parent_conf, child_conf)
def lowercase_labels(hash)
return unless hash

hash['labels'] = hash['labels'].map(&:downcase).uniq if hash.key? 'labels'
hash['labels'] = hash['labels'].map(&:to_s).map(&:downcase).uniq if hash.key? 'labels'

Check warning on line 503 in app/models/activity.rb

View check run for this annotation

Codecov / codecov/patch

app/models/activity.rb#L503

Added line #L503 was not covered by tests
hash
end

Expand Down

0 comments on commit a0ae688

Please sign in to comment.