Skip to content

Commit 92b9a25

Browse files
abetomoctalkington
authored andcommitted
Add const to the initial variable (#261)
1 parent 9da60f7 commit 92b9a25

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-
entryData = _.extend({}, data);
722+
const entryData = _.extend({}, data);
723723

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

0 commit comments

Comments
 (0)