From a85599d5323a110d93612f34a531e59fa6779277 Mon Sep 17 00:00:00 2001 From: kevans Date: Thu, 1 Oct 2020 14:20:36 +0000 Subject: [PATCH] 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. --- stand/lua/cli.lua | 2 +- stand/lua/core.lua | 2 +- stand/lua/menu.lua | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stand/lua/cli.lua b/stand/lua/cli.lua index 18829219144..904c57bb376 100644 --- a/stand/lua/cli.lua +++ b/stand/lua/cli.lua @@ -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 diff --git a/stand/lua/core.lua b/stand/lua/core.lua index 1bb2efb7544..441a032dc51 100644 --- a/stand/lua/core.lua +++ b/stand/lua/core.lua @@ -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 diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua index 4eb801a16e2..f7ca0a486ee 100644 --- a/stand/lua/menu.lua +++ b/stand/lua/menu.lua @@ -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 -- 2.45.0