Skip to content

Commit 32bdebd

Browse files
committedJun 5, 2015
minor tweak to data function check.
1 parent 6688585 commit 32bdebd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎lib/core.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,7 @@ Archiver.prototype.directory = function(dirpath, destpath, data) {
429429
if (typeof data === 'function') {
430430
dataFunction = data;
431431
data = {};
432-
} else if (typeof data === 'object') {
433-
data = data;
434-
} else {
432+
} else if (typeof data !== 'object') {
435433
data = {};
436434
}
437435

0 commit comments

Comments
 (0)
Please sign in to comment.