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
558bc96099
commit
bd0c9f75ae
|
@ -24,13 +24,7 @@ end
|
||||||
--- Handle a button event on a widget. This is used internally.
|
--- Handle a button event on a widget. This is used internally.
|
||||||
function handle_button(event, widget, x, y, button, modifiers)
|
function handle_button(event, widget, x, y, button, modifiers)
|
||||||
local function is_any(mod)
|
local function is_any(mod)
|
||||||
if #mod ~= 1 then
|
return #mod == 1 and mod[1] == "Any"
|
||||||
return false
|
|
||||||
end
|
|
||||||
if mod[1] ~= "Any" then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
return true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function tables_equal(a, b)
|
local function tables_equal(a, b)
|
||||||
|
|
Loading…
Reference in New Issue