fix linting error
This commit is contained in:
parent
5a48c1feed
commit
f56abac7a8
1 changed files with 2 additions and 2 deletions
|
@ -479,14 +479,14 @@
|
|||
}
|
||||
if (info.size === 0) {
|
||||
return process.nextTick(function () {
|
||||
callback(null, encoding? '' : new Buffer(0))
|
||||
callback(null, encoding ? '' : new Buffer(0))
|
||||
})
|
||||
}
|
||||
if (info.unpacked) {
|
||||
const realPath = archive.copyFileOut(filePath)
|
||||
return fs.readFile(realPath, options, callback)
|
||||
}
|
||||
|
||||
|
||||
const buffer = new Buffer(info.size)
|
||||
const fd = archive.getFd()
|
||||
if (!(fd >= 0)) {
|
||||
|
|
Loading…
Reference in a new issue