Return condition value instead of conditional true/false

Signed-off-by: Felix Bier <flx.bier@googlemail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Felix Bier 2012-05-13 00:23:35 +02:00 committed by Uli Schlachter
parent bd0c9f75ae
commit 4170c77a08
1 changed files with 1 additions and 5 deletions

View File

@ -172,11 +172,7 @@ end
-- @param screen The screen we are drawing on. -- @param screen The screen we are drawing on.
-- @return true if t is not empty, else false -- @return true if t is not empty, else false
function filter.noempty(t, args) function filter.noempty(t, args)
if #t:clients() > 0 or t.selected then return #t:clients() > 0 or t.selected
return true
end
return false
end end
--- Filtering function to include all tags on the screen. --- Filtering function to include all tags on the screen.