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:
Felix Bier 2012-05-13 00:23:05 +02:00 committed by Uli Schlachter
parent 1a91fd64b9
commit 558bc96099
1 changed files with 1 additions and 4 deletions

View File

@ -67,10 +67,7 @@ function match(key, pressed_mod, pressed_key)
end
-- If the number of pressed modifier is ~=, it is probably >, so this is not
-- the same, return false.
if #pressed_mod ~= #mod then
return false
end
return true
return #pressed_mod == #mod
end
setmetatable(_M, { __call = function(_, ...) return new(...) end })