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
This commit is contained in:
Pablo Ariel Mayobre
2017-05-19 10:32:03 -03:00
committed by Antonin Décimo
parent 7d5532ebe4
commit bbe64d4459

View File

@@ -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)