From bbe64d445965bcb47e71347b987ea541fc3da746 Mon Sep 17 00:00:00 2001 From: Pablo Ariel Mayobre Date: Fri, 19 May 2017 10:32:03 -0300 Subject: [PATCH] Ignore the check for table.unpack Table unpack is not available in either Lua 5.1 nor LuaJIT, yet it's used as a fallback for unpack. This is not an error on itself, but is listed as an error by Luacheck. An alternative solution would be to remove this line entirely --- src/project.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project.lua b/src/project.lua index 434096a..e45cd0b 100644 --- a/src/project.lua +++ b/src/project.lua @@ -148,7 +148,7 @@ function Project:excludeFiles() dir = "^"..dir end - local unpack = unpack or table.unpack + local unpack = unpack or table.unpack -- luacheck: ignore for i=#self._fileList,1,-1 do if isExcluded(self._fileList[i], dir, unpack(self.excludeFileList)) then table.remove(self._fileList, i)