Skip to content

Commit

Permalink
use concat
Browse files Browse the repository at this point in the history
  • Loading branch information
notable-sebastian committed Feb 13, 2025
1 parent aa55f7b commit 44f90b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def drawer_menu_navigation_item(text, link, icon = nil)
end

link_to link, **link_options do
tag.span(class: 'mdc-deprecated-list-item__ripple') +
tag.span(text, class: 'mdc-deprecated-list-item__text') +
(icon ? tag.i(icon, class: 'material-icons mdc-deprecated-list-item__graphic') : ''.html_safe)
concat tag.span(class: 'mdc-deprecated-list-item__ripple')
concat tag.span(text, class: 'mdc-deprecated-list-item__text')

Check failure on line 26 in app/helpers/application_helper.rb

View workflow job for this annotation

GitHub Actions / lint

Layout/ExtraSpacing: Unnecessary spacing detected.

Check failure on line 26 in app/helpers/application_helper.rb

View workflow job for this annotation

GitHub Actions / lint

Layout/SpaceBeforeFirstArg: Put one space between the method name and the first argument.
concat tag.i(icon, class: 'material-icons mdc-deprecated-list-item__graphic') if icon
end
end

Expand Down

0 comments on commit 44f90b5

Please sign in to comment.