Commit b70e644e authored by Baodong's avatar Baodong

Refactor configure_menu_items method

parent 9998e460
......@@ -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