lualoader: Use "local function x()" instead of "local x = function()"
The latter is good, but the former is more elegant and clear about what 'x' is. Adopt it, preferably only using the latter kind of notation where needed as values for tables.
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ local config = require("config")
|
||||
|
||||
local core = {}
|
||||
|
||||
local compose_loader_cmd = function(cmd_name, argstr)
|
||||
local function compose_loader_cmd(cmd_name, argstr)
|
||||
if argstr ~= nil then
|
||||
cmd_name = cmd_name .. " " .. argstr
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user