lualoader: Address some 'luacheck' concerns

luacheck pointed out an assortment of issues, ranging from non-standard
globals being created as well as unused parameters, variables, and redundant
assignments.

Using '_' as a placeholder for values unused (whether it be parameters
unused or return values unused, assuming multiple return values) feels clean
and gets the point across, so I've adopted it. It also helps flag candidates
for cleanup later in some of the lambdas I've created, giving me an easy way
to re-evaluate later if we're still not using some of these features.
This commit is contained in:
Kyle Evans
2018-02-22 04:15:02 +00:00
parent 03d54eb339
commit e2df27e363
7 changed files with 33 additions and 37 deletions
-1
View File
@@ -200,7 +200,6 @@ function core.bootenvList()
local bootenv_count = tonumber(loader.getenv("bootenvs_count"))
local bootenvs = {}
local curenv
local curenv_idx = 0
local envcount = 0
local unique = {}