Commit b70e644e authored by Baodong's avatar Baodong

Refactor configure_menu_items method

parent 9998e460
...@@ -6,11 +6,7 @@ module Sidebars ...@@ -6,11 +6,7 @@ module Sidebars
class ZentaoMenu < ::Sidebars::Menu class ZentaoMenu < ::Sidebars::Menu
override :configure_menu_items override :configure_menu_items
def configure_menu_items def configure_menu_items
render?.tap do |render| render?.tap { |render| add_items if render }
break unless render
add_items
end
end end
override :link 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