Skip to content

Commit

Permalink
http: remove unneeded cb check from setTimeout
Browse files Browse the repository at this point in the history
- check is already covered by event emitter
  • Loading branch information
aks- committed Nov 5, 2015
1 parent a3b238a commit 395e324
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/_http_outgoing.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ exports.OutgoingMessage = OutgoingMessage;
OutgoingMessage.prototype.setTimeout = function(msecs, callback) {

if (callback) {
if (typeof callback !== 'function')
throw new TypeError('callback must be a function');
this.on('timeout', callback);
}

Expand Down

0 comments on commit 395e324

Please sign in to comment.