mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 09:03:43 +01:00
Fix Style/RedundantArgument
cop (#28321)
This commit is contained in:
parent
9dfa940636
commit
2c6369918c
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def fa_icon(icon, attributes = {})
|
def fa_icon(icon, attributes = {})
|
||||||
class_names = attributes[:class]&.split(' ') || []
|
class_names = attributes[:class]&.split || []
|
||||||
class_names << 'fa'
|
class_names << 'fa'
|
||||||
class_names += icon.split.map { |cl| "fa-#{cl}" }
|
class_names += icon.split.map { |cl| "fa-#{cl}" }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue