lua-simple-uci: luacheck fixes
This commit is contained in:
parent
cf0619a0f9
commit
32c9f657d1
|
@ -16,7 +16,7 @@ M.APIVERSION = uci.APIVERSION
|
||||||
|
|
||||||
local Cursor = setmetatable({}, {
|
local Cursor = setmetatable({}, {
|
||||||
-- Forward calls to the actual UCI cursor
|
-- Forward calls to the actual UCI cursor
|
||||||
__index = function(t, f)
|
__index = function(_, f)
|
||||||
return function(self, ...)
|
return function(self, ...)
|
||||||
local c = self.cursor
|
local c = self.cursor
|
||||||
return c[f](c, ...)
|
return c[f](c, ...)
|
||||||
|
@ -71,13 +71,13 @@ function Cursor:delete_all(config, stype, comparator)
|
||||||
|
|
||||||
self:foreach(config, stype, helper)
|
self:foreach(config, stype, helper)
|
||||||
|
|
||||||
for i, j in ipairs(del) do
|
for _, j in ipairs(del) do
|
||||||
self:delete(config, j)
|
self:delete(config, j)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Cursor:section(config, type, name, values)
|
function Cursor:section(config, type, name, values)
|
||||||
local stat = true
|
local stat
|
||||||
if name then
|
if name then
|
||||||
stat = self.cursor:set(config, name, type)
|
stat = self.cursor:set(config, name, type)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue