gluon-web-network: fix variable shadowing
package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua:122:16: (W431) shadowing upvalue f on line 19
Fixes: bab4af01e
("gluon-web-network: improve PoE GPIO name translation
handling")
This commit is contained in:
parent
8974d32672
commit
eeb745d717
@ -119,10 +119,10 @@ uci:foreach("system", "gpio_switch", function(si)
|
|||||||
}
|
}
|
||||||
|
|
||||||
local name
|
local name
|
||||||
for pattern, f in pairs(texts) do
|
for pattern, func in pairs(texts) do
|
||||||
local match = {si.name:match(pattern)}
|
local match = {si.name:match(pattern)}
|
||||||
if match[1] then
|
if match[1] then
|
||||||
name = f(match)
|
name = func(match)
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user