Skip to content

Commit a86dcf8

Browse files
committed
core: no need for defaulting support checks. just check if supports and key are set.
1 parent ecb00f2 commit a86dcf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/core.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ Archiver.prototype._modulePipe = function() {
151151
};
152152

153153
Archiver.prototype._moduleSupports = function(key) {
154-
this._module.supports = util.defaults(this._module.supports, {
155-
directory: false
156-
});
154+
if (!this._module.supports || !this._module.supports[key]) {
155+
return false;
156+
}
157157

158158
return this._module.supports[key];
159159
};

0 commit comments

Comments
 (0)