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:
parent
bd0c9f75ae
commit
4170c77a08
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue