Skip to content

Commit efeb0d4

Browse files
committed
revert the usage of const since it cant be redefined causing potential issues when cwd is used but use var to fix the undefined issue.
1 parent f6ba2ce commit efeb0d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ Archiver.prototype.glob = function(pattern, options, data) {
719719
}
720720

721721
function onGlobMatch(match){
722-
const entryData = _.extend({}, data);
722+
var entryData = _.extend({}, data);
723723

724724
if (options.cwd) {
725725
entryData.name = match;

0 commit comments

Comments
 (0)