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
1a91fd64b9
commit
558bc96099
|
@ -67,10 +67,7 @@ function match(key, pressed_mod, pressed_key)
|
||||||
end
|
end
|
||||||
-- If the number of pressed modifier is ~=, it is probably >, so this is not
|
-- If the number of pressed modifier is ~=, it is probably >, so this is not
|
||||||
-- the same, return false.
|
-- the same, return false.
|
||||||
if #pressed_mod ~= #mod then
|
return #pressed_mod == #mod
|
||||||
return false
|
|
||||||
end
|
|
||||||
return true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
setmetatable(_M, { __call = function(_, ...) return new(...) end })
|
setmetatable(_M, { __call = function(_, ...) return new(...) end })
|
||||||
|
|
Loading…
Reference in New Issue