about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-03-15 21:34:00 -0400
committerGitHub <noreply@github.com>2023-03-16 10:34:00 +0900
commit25d36b6edd77ed161b2f496101f7127f7c1c9e5c (patch)
treecfe9f6a08a9a529cd323080576f7c4874e1b9cd5 /app/helpers
parent0566c81a0cac884e7b176f8fc0a187ae11cf34c0 (diff)
Autofix Rubocop Style/RedundantArgument (#23798)
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 08020a65a..9dc8bba2d 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -112,7 +112,7 @@ module ApplicationHelper
   def fa_icon(icon, attributes = {})
     class_names = attributes[:class]&.split(' ') || []
     class_names << 'fa'
-    class_names += icon.split(' ').map { |cl| "fa-#{cl}" }
+    class_names += icon.split.map { |cl| "fa-#{cl}" }
 
     content_tag(:i, nil, attributes.merge(class: class_names.join(' ')))
   end
@@ -164,7 +164,7 @@ module ApplicationHelper
   end
 
   def body_classes
-    output = (@body_classes || '').split(' ')
+    output = (@body_classes || '').split
     output << "theme-#{current_theme.parameterize}"
     output << 'system-font' if current_account&.user&.setting_system_font_ui
     output << (current_account&.user&.setting_reduce_motion ? 'reduce-motion' : 'no-reduce-motion')