test-hooks.lua: fix variable shadowing warning

This commit is contained in:
Kacper Michajłow 2024-05-12 02:27:56 +02:00
parent c431b532b8
commit c5c5a5a2ad
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ end
local props = {"path", "metadata"}
for _, name in ipairs(props) do
mp.observe_property(name, "native", function(name, val)
print("property '" .. name .. "' changed to '" ..
mp.observe_property(name, "native", function(prop, val)
print("property '" .. prop .. "' changed to '" ..
utils.to_string(val) .. "'")
end)
end