[Poly > Yauzl] Fix testing error, clean code

This commit is contained in:
Ducko 2022-01-25 22:41:00 +00:00
parent 4da7c11a04
commit 1d78f47fdc
1 changed files with 2 additions and 4 deletions

View File

@ -24,12 +24,10 @@ exports.open = async (zipPath, _options, callback) => {
mkdirSync(extractPath, { recursive: true });
const proc = execFile('unzipp', ['-o', zipPath.replaceAll('"', ''), '-d', extractPath]);
const proc = execFile('unzip', ['-o', zipPath.replaceAll('"', ''), '-d', extractPath]);
log('Yauzl', 'Spawned');
proc.stderr.on('data', (data) => {
errorOut(data.toString());
});
proc.stderr.on('data', errorOut);
proc.on('error', (err) => {
if (err.code === 'ENOENT') {