Fix `Style/RedundantArgument` cop (#28321)

pull/28323/head
Matt Jankowski 1 year ago committed by GitHub
parent 9dfa940636
commit 2c6369918c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}" }

Loading…
Cancel
Save