Skip to content

Commit

Permalink
change map! to map
Browse files Browse the repository at this point in the history
map! already changes self.tags in place, so the self.tags = self.tags.map! is redundant
  • Loading branch information
vasconsaurus committed Sep 30, 2024
1 parent f29ee76 commit 73a4266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/fact_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def self.get_exported_data(query, team)

def clean_tags
return if self.tags.blank?
self.tags = self.tags.map! { |tag| tag.strip.gsub(/^#/, '') }.uniq
self.tags = self.tags.map { |tag| tag.strip.gsub(/^#/, '') }.uniq
end

private
Expand Down

0 comments on commit 73a4266

Please sign in to comment.