diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js index 581f62f129f120..6e66ae6d42a9c0 100644 --- a/lib/_http_incoming.js +++ b/lib/_http_incoming.js @@ -20,10 +20,6 @@ exports.readStop = readStop; function IncomingMessage(socket) { Stream.Readable.call(this); - // XXX This implementation is kind of all over the place - // When the parser emits body chunks, they go in this list. - // _read() pulls them out, and when it finds EOF, it ends. - this.socket = socket; this.connection = socket; diff --git a/lib/_http_outgoing.js b/lib/_http_outgoing.js index 56228f5139c80a..ec5e078412768b 100644 --- a/lib/_http_outgoing.js +++ b/lib/_http_outgoing.js @@ -489,8 +489,7 @@ function writeAfterEndNT(self, err, callback) { function connectionCorkNT(conn) { - if (conn) - conn.uncork(); + conn.uncork(); } diff --git a/src/env-inl.h b/src/env-inl.h index e1856d81b0060a..475e8e83f594e6 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -108,7 +108,6 @@ inline Environment::AsyncCallbackScope::AsyncCallbackScope(Environment* env) inline Environment::AsyncCallbackScope::~AsyncCallbackScope() { env_->makecallback_cntr_--; - CHECK_GE(env_->makecallback_cntr_, 0); } inline bool Environment::AsyncCallbackScope::in_makecallback() {