audio-hotplug-test.lua: fix some lint warnings

Fixes:

audio-hotplug-test.lua:1:7: unused variable utils
audio-hotplug-test.lua:3:61: unused argument name
audio-hotplug-test.lua:5:9: unused loop variable index
This commit is contained in:
Kacper Michajłow 2024-05-12 01:59:00 +02:00
parent 71d9c31394
commit fabc92453f
1 changed files with 2 additions and 4 deletions

View File

@ -1,8 +1,6 @@
local utils = require("mp.utils")
mp.observe_property("audio-device-list", "native", function(name, val)
mp.observe_property("audio-device-list", "native", function(_, val)
print("Audio device list changed:")
for index, e in ipairs(val) do
for _, e in ipairs(val) do
print(" - '" .. e.name .. "' (" .. e.description .. ")")
end
end)