diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-10-01 14:20:36 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-10-01 14:20:36 +0000 |
commit | 94510c294d831a47ac24d691078d0221493ec68e (patch) | |
tree | ccded4f984277cb0e0c1dcda4b8e4189b6ea9ff5 /stand/lua | |
parent | 92d47dce78526e339ad4d344aa0cd11b3ec479e8 (diff) | |
download | src-94510c294d831a47ac24d691078d0221493ec68e.tar.gz src-94510c294d831a47ac24d691078d0221493ec68e.zip |
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.
Notes
Notes:
svn path=/head/; revision=366314
Diffstat (limited to 'stand/lua')
-rw-r--r-- | stand/lua/cli.lua | 2 | ||||
-rw-r--r-- | stand/lua/core.lua | 2 | ||||
-rw-r--r-- | 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 188292191448..904c57bb3760 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 1bb2efb75446..441a032dc51a 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 4eb801a16e2d..f7ca0a486ee4 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 |