Skip to content

Commit 2a86be9

Browse files
committed
fixup: Object.assign()
1 parent 2b9b3c3 commit 2a86be9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/zlib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ Zlib.prototype.flush = function(kind, callback) {
454454
};
455455

456456
Zlib.prototype.close = function(callback, options) {
457-
options = options || {};
457+
options = Object.assign({sync: false}, options);
458458

459459
if (callback)
460460
process.nextTick(callback);

0 commit comments

Comments
 (0)