Fix Style/RedundantArgument cop (#28321)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2023-12-11 14:58:29 +00:00
1 parent 9dfa940636
commit 2c6369918c
1 file changed
+1 -1
+1 -1
View File
@@ -114,7 +114,7 @@ module ApplicationHelper
end
def fa_icon(icon, attributes = {})
class_names = attributes[:class]&.split(' ') || []
class_names = attributes[:class]&.split || []
class_names << 'fa'
class_names += icon.split.map { |cl| "fa-#{cl}" }