From 4170c77a08a3257858b004ea13b469f8eef0832b Mon Sep 17 00:00:00 2001 From: Felix Bier Date: Sun, 13 May 2012 00:23:35 +0200 Subject: [PATCH] Return condition value instead of conditional true/false Signed-off-by: Felix Bier Signed-off-by: Uli Schlachter --- lib/awful/widget/taglist.lua.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in index 05256bf1..a6ec7f6d 100644 --- a/lib/awful/widget/taglist.lua.in +++ b/lib/awful/widget/taglist.lua.in @@ -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.