fix linting error

This commit is contained in:
Siyuan Liu 2017-08-01 17:52:48 +08:00
parent 5a48c1feed
commit f56abac7a8

View file

@ -479,14 +479,14 @@
} }
if (info.size === 0) { if (info.size === 0) {
return process.nextTick(function () { return process.nextTick(function () {
callback(null, encoding? '' : new Buffer(0)) callback(null, encoding ? '' : new Buffer(0))
}) })
} }
if (info.unpacked) { if (info.unpacked) {
const realPath = archive.copyFileOut(filePath) const realPath = archive.copyFileOut(filePath)
return fs.readFile(realPath, options, callback) return fs.readFile(realPath, options, callback)
} }
const buffer = new Buffer(info.size) const buffer = new Buffer(info.size)
const fd = archive.getFd() const fd = archive.getFd()
if (!(fd >= 0)) { if (!(fd >= 0)) {