event-hooks: remove the unwanted second arg in simple hooks

This commit is contained in:
Ashok Sidipotu
2022-07-13 06:27:08 +05:30
committed by Julian Bouzas
parent 695b99f0e8
commit 82a8bc5673
5 changed files with 12 additions and 12 deletions

View File

@@ -161,7 +161,7 @@ SimpleEventHook {
Constraint { "wireplumber.is-endpoint", "-", type = "pw" },
},
},
execute = function (_, event)
execute = function (event)
local node = event:get_subject ()
local id = node ["bound-id"]
if items [id] then