observe-all.lua: fix some lint warnings

This commit is contained in:
Kacper Michajłow 2024-05-12 02:13:06 +02:00
parent 16c19445bc
commit 50c4b2cd4c
1 changed files with 4 additions and 4 deletions

View File

@ -7,16 +7,16 @@
local utils = require("mp.utils") local utils = require("mp.utils")
function observe(name) function observe(name)
mp.observe_property(name, "native", function(name, val) mp.observe_property(name, "native", function(prop, val)
print("property '" .. name .. "' changed to '" .. print("property '" .. prop .. "' changed to '" ..
utils.to_string(val) .. "'") utils.to_string(val) .. "'")
end) end)
end end
for i,name in ipairs(mp.get_property_native("property-list")) do for _, name in ipairs(mp.get_property_native("property-list")) do
observe(name) observe(name)
end end
for i,name in ipairs(mp.get_property_native("options")) do for _, name in ipairs(mp.get_property_native("options")) do
observe("options/" .. name) observe("options/" .. name)
end end