lua-simple-uci: luacheck fixes

This commit is contained in:
Matthias Schiffer 2019-06-16 14:41:31 +02:00
parent cf0619a0f9
commit 32c9f657d1
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ M.APIVERSION = uci.APIVERSION
local Cursor = setmetatable({}, {
-- Forward calls to the actual UCI cursor
__index = function(t, f)
__index = function(_, f)
return function(self, ...)
local c = self.cursor
return c[f](c, ...)
@ -71,13 +71,13 @@ function Cursor:delete_all(config, stype, comparator)
self:foreach(config, stype, helper)
for i, j in ipairs(del) do
for _, j in ipairs(del) do
self:delete(config, j)
end
end
function Cursor:section(config, type, name, values)
local stat = true
local stat
if name then
stat = self.cursor:set(config, name, type)
else