Skip to content
Snippets Groups Projects
Commit eeb745d7 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

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: bab4af01 ("gluon-web-network: improve PoE GPIO name translation
handling")
parent 8974d326
No related branches found
No related tags found
No related merge requests found
...@@ -119,10 +119,10 @@ uci:foreach("system", "gpio_switch", function(si) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment