From 4335c50a2b4b83b1fe213b5c4007c47f2c787d1f Mon Sep 17 00:00:00 2001 From: Yanlan Shen Date: Wed, 14 Nov 2018 11:49:33 +0800 Subject: luci-theme-rosy: Remove redundant statements Signed-off-by: Yanlan Shen --- themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'themes/luci-theme-rosy/luasrc/view') diff --git a/themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm b/themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm index e7316770bf..89bbd815bd 100644 --- a/themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm +++ b/themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm @@ -154,9 +154,7 @@ local nnode = cattree.nodes[r] local grandchildren = disp.node_childs(nnode) - if #grandchildren > 0 then - - else + if #grandchildren <= 0 then local title = pcdata(striptags(translate(nnode.title))) write('%s' %{ -- cgit v1.2.3