From: Yanlan Shen Date: Wed, 14 Nov 2018 03:49:33 +0000 (+0800) Subject: luci-theme-rosy: Remove redundant statements X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4335c50a2b4b83b1fe213b5c4007c47f2c787d1f;p=oweals%2Fluci.git luci-theme-rosy: Remove redundant statements Signed-off-by: Yanlan Shen --- 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 e7316770b..89bbd815b 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' %{