luci-theme-rosy: Remove redundant statements
authorYanlan Shen <yanlan.shen.@rosinson.com>
Wed, 14 Nov 2018 03:49:33 +0000 (11:49 +0800)
committerYanlan Shen <yanlan.shen.@rosinson.com>
Wed, 14 Nov 2018 03:49:33 +0000 (11:49 +0800)
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm

index e7316770bfa60696f3b3019fec51114332eae094..89bbd815bd33b672051ccc475f8e7fd9d1795746 100644 (file)
                                 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>' %{