We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dac1d38 commit 8625a38Copy full SHA for 8625a38
lib/_http_outgoing.js
@@ -91,8 +91,6 @@ exports.OutgoingMessage = OutgoingMessage;
91
OutgoingMessage.prototype.setTimeout = function(msecs, callback) {
92
93
if (callback) {
94
- if (typeof callback !== 'function')
95
- throw new TypeError('callback must be a function');
96
this.on('timeout', callback);
97
}
98
0 commit comments