luci-theme-rosy: Remove redundant statements

Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
This commit is contained in:
Yanlan Shen 2018-11-14 11:49:33 +08:00
parent 1ca22ec3f0
commit 4335c50a2b

View file

@ -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('<span class="label logout"><a data-title="%s" href="%s">%s</a></span>' %{