From 558bc96099fd6b5d2934da80aad7cda1cfef50dc Mon Sep 17 00:00:00 2001 From: Felix Bier Date: Sun, 13 May 2012 00:23:05 +0200 Subject: [PATCH] Return condition value instead of conditional true/false Signed-off-by: Felix Bier Signed-off-by: Uli Schlachter --- lib/awful/key.lua.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/awful/key.lua.in b/lib/awful/key.lua.in index b88cd2953..10aa9ee67 100644 --- a/lib/awful/key.lua.in +++ b/lib/awful/key.lua.in @@ -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 })