Commit 4ce6e16a authored by Luke Duncalfe's avatar Luke Duncalfe

Merge branch 'refactor/zentao_configure_menu_items' into 'master'

Refactor configure_menu_items method

See merge request gitlab-org/gitlab!72567
parents b1dc1cf1 b70e644e
......@@ -6,11 +6,7 @@ module Sidebars
class ZentaoMenu < ::Sidebars::Menu
override :configure_menu_items
def configure_menu_items
render?.tap do |render|
break unless render
add_items
end
render?.tap { |render| add_items if render }
end
override :link
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment