From eeb745d71766fe35705a3647bf1aee1bef6cc6ec Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 13 Aug 2019 17:40:43 +0200 Subject: [PATCH] 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") --- .../luasrc/lib/gluon/config-mode/model/admin/network.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua b/package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua index 7bd1aff6..dab31ec0 100644 --- a/package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua +++ b/package/gluon-web-network/luasrc/lib/gluon/config-mode/model/admin/network.lua @@ -119,10 +119,10 @@ uci:foreach("system", "gpio_switch", function(si) } local name - for pattern, f in pairs(texts) do + for pattern, func in pairs(texts) do local match = {si.name:match(pattern)} if match[1] then - name = f(match) + name = func(match) break end end