chore(vhd-lib/_readChunk): dont clean twice on end

This commit is contained in:
Julien Fontanet
2019-11-19 15:49:56 +01:00
parent fe7f74e46b
commit 23be38b5fa

View File

@@ -17,10 +17,7 @@ export default async function readChunk(stream, n) {
resolve(Buffer.concat(chunks, i))
}
function onEnd() {
resolve2()
clean()
}
const onEnd = resolve2
function onError(error) {
reject(error)