We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0db5fb commit a7f28a0Copy full SHA for a7f28a0
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