Skip to content

Commit a0c35cd

Browse files
committed
Fix Rubocop warnings
1 parent 055800f commit a0c35cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/simple_navigation_bootstrap/rendered_item.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ def dropdown_submenu_link
121121

122122
def simple_link
123123
link_options[:method] ||= item.method
124-
link_to(item.name, (item.url || '#'), link_options)
124+
url = item.url || '#'
125+
link_to(item.name, url, link_options)
125126
end
126127

127128
end

0 commit comments

Comments
 (0)