lualoader: clear up some luacheck warnings

- One (1) unused argument
- One (1) trailing whitespace
- Two (2) "non-standard global" (curenv, rewind)

tools/boot/lua-lint.sh is once again happy.
This commit is contained in:
Kyle Evans 2020-10-01 14:20:36 +00:00
parent 92d47dce78
commit 94510c294d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366314
3 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ cli['read-conf'] = function(...)
config.readConf(assert(core.popFrontTable(argv)))
end
cli['reload-conf'] = function(...)
cli['reload-conf'] = function()
config.reload()
end

View File

@ -319,7 +319,7 @@ function core.bootenvDefaultRewinded()
end
for curenv_idx = 0, bootenv_count - 1 do
curenv = loader.getenv("bootenvs_check[" .. curenv_idx .. "]")
local curenv = loader.getenv("bootenvs_check[" .. curenv_idx .. "]")
if curenv == defname then
return defname
end

View File

@ -232,7 +232,7 @@ menu.welcome = {
multi_user = multi_user,
}
else
single_user = alts.single_user
single_user = alts.single_user
multi_user = alts.multi_user
end
boot_entry_1, boot_entry_2 = single_user, multi_user
@ -352,7 +352,7 @@ menu.welcome = {
zpool_checkpoints = {
entry_type = core.MENU_ENTRY,
name = function()
rewind = "No"
local rewind = "No"
if core.isRewinded() then
rewind = "Yes"
end