From 3da68f76dcb45c2773c4092eac7ed98e35750a9c Mon Sep 17 00:00:00 2001 From: Hisham Date: Fri, 2 Dec 2016 08:49:39 -0200 Subject: Avoid overwriting variable. --- src/luarocks/fs/lua.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index e4c6ca05..7fe6c7f8 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua @@ -489,10 +489,10 @@ end if unzip_ok then --- Uncompress files from a .zip archive. --- @param zipfile string: pathname of .zip archive to be extracted. +-- @param filename string: pathname of .zip archive to be extracted. -- @return boolean: true on success, false on failure. -function fs_lua.unzip(zipfile) - local zipfile, err = luazip.open(zipfile) +function fs_lua.unzip(filename) + local zipfile, err = luazip.open(filename) if not zipfile then return nil, err end local files = zipfile:files() local file = files() -- cgit v1.2.3-55-g6feb