awful.tag.object.delete: Remove dead code
The case fallback_tag == nil was already checked some lines above. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
b0038c8ddb
commit
962a73c18c
|
@ -283,8 +283,7 @@ function tag.object.delete(self, fallback_tag)
|
|||
|
||||
-- If a client has only this tag, or stickied clients with
|
||||
-- nowhere to go, abort.
|
||||
if (not c.sticky and nb_tags == 1) or
|
||||
(c.sticky and fallback_tag == nil) then
|
||||
if (not c.sticky and nb_tags == 1) then
|
||||
return
|
||||
-- If a client has multiple tags, then do not move it to fallback
|
||||
elseif nb_tags < 2 then
|
||||
|
|
Loading…
Reference in New Issue