From 2960edeb5fec86a54fd67fc67f2b3839cfa8b4db Mon Sep 17 00:00:00 2001 From: Patrick Griffin <58729+firien@users.noreply.github.com> Date: Mon, 16 Sep 2024 11:27:05 -0400 Subject: [PATCH] no async needed --- src/zip.js | 2 +- test/node/zip.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zip.js b/src/zip.js index c65049e..07ff84b 100644 --- a/src/zip.js +++ b/src/zip.js @@ -125,7 +125,7 @@ export default class { * @param {string} name name of folder * @return {Entry} */ - async addFolder (name) { + addFolder (name) { const folder = Entry.addFolder(name) this.entries.push(folder) const scope = { diff --git a/test/node/zip.test.js b/test/node/zip.test.js index 78810bf..afba775 100644 --- a/test/node/zip.test.js +++ b/test/node/zip.test.js @@ -26,8 +26,8 @@ test('zip me up', async () => { test('zip with folder', async () => { const zip = new MinZip() - const folder = await zip.addFolder('test') - const folder2 = await folder.addFolder('ext') + const folder = zip.addFolder('test') + const folder2 = folder.addFolder('ext') const blob2 = new Blob(['zipped'], { type: 'text/plain' }) await folder2.addFile('two.txt', blob2)