Skip to content

Commit

Permalink
Merge pull request #5 from firien/no-async
Browse files Browse the repository at this point in the history
no async needed
  • Loading branch information
firien authored Sep 16, 2024
2 parents b482a15 + 2960ede commit ca45e0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions test/node/zip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca45e0d

Please sign in to comment.