Browse Source

Fix `Style/RedundantArgument` cop (#28321)

dariusk-working/4_3_0
Matt Jankowski 2 years ago committed by GitHub
parent
commit
2c6369918c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/helpers/application_helper.rb

2
app/helpers/application_helper.rb

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