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.
-- @return true if t is not empty, else false
function filter.noempty(t, args)
if #t:clients() > 0 or t.selected then
return true
end
return false
return #t:clients() > 0 or t.selected
end
--- Filtering function to include all tags on the screen.