History

observe-all.lua: fix some lint warnings

Kacper Michajłow committed 2 years ago

Commit 50c4b2c1 parent 16c19441 file · +4 −4Browse files

Unified · Split

TOOLS/lua/observe-all.lua+4−4
@@ -7,16 +7,16 @@ · 6 unmodified lines
77 local utils = require("mp.utils")
88
99 function observe(name)
10− mp.observe_property(name, "native", function(name, val)
11− print("property '" .. name .. "' changed to '" ..
10+ mp.observe_property(name, "native", function(prop, val)
11+ print("property '" .. prop .. "' changed to '" ..
1212 utils.to_string(val) .. "'")
1313 end)
1414 end
1515
16−for i,name in ipairs(mp.get_property_native("property-list")) do
16+for _, name in ipairs(mp.get_property_native("property-list")) do
1717 observe(name)
1818 end
1919
20−for i,name in ipairs(mp.get_property_native("options")) do
20+for _, name in ipairs(mp.get_property_native("options")) do
2121 observe("options/" .. name)
2222 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t