Consolidate gunzip logic

This commit is contained in:
Michael Jackson
2019-08-02 16:06:13 -07:00
parent 746a6fddf5
commit be843179d4
7 changed files with 6 additions and 12 deletions

View File

@ -1,4 +1,3 @@
import gunzip from 'gunzip-maybe';
import tar from 'tar-stream';
import asyncHandler from '../utils/asyncHandler.js';
@ -13,7 +12,6 @@ async function findEntry(stream, filename) {
let foundEntry = null;
stream
.pipe(gunzip())
.pipe(tar.extract())
.on('error', reject)
.on('entry', async (header, stream, next) => {