minor: taglist.taglist_label: join if / remove indent

This commit is contained in:
Daniel Hahler 2015-09-25 01:29:00 +02:00
parent f4d6011f23
commit 116c90c8d8
1 changed files with 9 additions and 11 deletions

View File

@ -55,8 +55,7 @@ function taglist.taglist_label(t, args)
local is_selected = false
local cls = t:clients()
if sel then
if taglist_squares_sel then
if sel and taglist_squares_sel then
-- Check that the selected client is tagged with 't'.
local seltags = sel:tags()
for _, v in ipairs(seltags) do
@ -68,7 +67,6 @@ function taglist.taglist_label(t, args)
end
end
end
end
if #cls == 0 and t.selected and taglist_squares_sel_empty then
bg_image = taglist_squares_sel_empty
bg_resize = taglist_squares_resize == "true"