Skip to content

Commit c2d5e09

Browse files
committedJun 22, 2020
Hotfix: only pull comment if there is a commentLength
1 parent be3c555 commit c2d5e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/Open/directory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ module.exports = function centralDirectory(source, options) {
142142
}
143143
})
144144
.then(function() {
145-
return endDir.pull(vars.commentLength).then(function(comment) {
145+
if (vars.commentLength) return endDir.pull(vars.commentLength).then(function(comment) {
146146
vars.comment = comment.toString('utf8');
147147
});
148148
})

0 commit comments

Comments
 (0)
Please sign in to comment.