Skip to content

Commit

Permalink
fix returned entry
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Feb 24, 2023
1 parent 3c11802 commit 0d04df5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/core/zip-fs-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ class ZipDirectoryEntry extends ZipEntry {
const clonedEntry = new ZipDirectoryEntry(zipEntry.fs, zipEntry.name);
if (deepClone) {
clonedEntry.children = zipEntry.children.map(child => {
const clone = child.clone(deepClone);
clone.parent = clonedEntry;
return clonedEntry;
const childClone = child.clone(deepClone);
childClone.parent = clonedEntry;
return childClone;
});
}
return clonedEntry;
Expand Down

0 comments on commit 0d04df5

Please sign in to comment.