Fix invoking undefined method

Have no idea how this used to work.
This commit is contained in:
Akis Kesoglou
2017-12-12 00:21:21 +02:00
committed by Cameron Diver
parent 7fd31b6a64
commit 96116aeaec

View File

@ -150,7 +150,7 @@ exports.tarDirectory = tarDirectory = (dir) ->
relPath = path.relative(path.resolve(dir), file) relPath = path.relative(path.resolve(dir), file)
Promise.join relPath, fs.stat(file), fs.readFile(file), Promise.join relPath, fs.stat(file), fs.readFile(file),
(filename, stats, data) -> (filename, stats, data) ->
pack.entryAsync({ name: toPosixPath(filename), size: stats.size, mode: stats.mode }, data) pack.entry({ name: filename, size: stats.size, mode: stats.mode }, data)
.then -> .then ->
pack.finalize() pack.finalize()
return pack return pack