mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
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:
committed by
Antonin Décimo
parent
7d5532ebe4
commit
bbe64d4459
@@ -148,7 +148,7 @@ function Project:excludeFiles()
|
|||||||
dir = "^"..dir
|
dir = "^"..dir
|
||||||
end
|
end
|
||||||
|
|
||||||
local unpack = unpack or table.unpack
|
local unpack = unpack or table.unpack -- luacheck: ignore
|
||||||
for i=#self._fileList,1,-1 do
|
for i=#self._fileList,1,-1 do
|
||||||
if isExcluded(self._fileList[i], dir, unpack(self.excludeFileList)) then
|
if isExcluded(self._fileList[i], dir, unpack(self.excludeFileList)) then
|
||||||
table.remove(self._fileList, i)
|
table.remove(self._fileList, i)
|
||||||
|
Reference in New Issue
Block a user