Skip to content

Commit

Permalink
Fixed outFileName
Browse files Browse the repository at this point in the history
  • Loading branch information
iacobnasca committed Nov 27, 2020
1 parent bc19fee commit 0f011a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adm-zip.js
Expand Up @@ -472,7 +472,7 @@ module.exports = function (/**String*/input) {
var entryName = item.entryName;

var target = sanitize(targetPath,
outFileName !== "" && !item.isDirectory ? outFileName :
outFileName && !item.isDirectory ? outFileName :
(maintainEntryPath ? entryName : pth.basename(entryName))
);

Expand Down

0 comments on commit 0f011a3

Please sign in to comment.