From c2297e3ca54f96be2ee789c218b4f7e4f225370a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 17 Jul 2018 16:25:23 -0300 Subject: minor luacheck fixes --- src/luarocks/fetch.lua | 3 ++- src/luarocks/fs/win32/tools.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua index 4031ec66..a49bb8f1 100644 --- a/src/luarocks/fetch.lua +++ b/src/luarocks/fetch.lua @@ -134,7 +134,8 @@ function fetch.fetch_and_unpack_rock(rock_file, dest) local name = dir.base_name(rock_file):match("(.*)%.[^.]*%.rock") - local rock_file, err, errcode = fetch.fetch_url_at_temp_dir(rock_file,"luarocks-rock-"..name) + local err, errcode + rock_file, err, errcode = fetch.fetch_url_at_temp_dir(rock_file,"luarocks-rock-"..name) if not rock_file then return nil, "Could not fetch rock file: " .. err, errcode end diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 633aae5e..f5e2ea2e 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua @@ -212,7 +212,7 @@ end --- Helper function for fs.set_permissions -- @return table: an array of all system users local function get_system_users() - result = {} + local result = {} local fd = assert(io.popen("wmic UserAccount get name")) for user in fd:lines() do user = user:gsub("%s+$", "") -- cgit v1.2.3-55-g6feb