Skip to content
Browse files

Fix style

  • Loading branch information...
1 parent 6a00fea commit 975ea90bed9503c67055b20e36baf4bcba54a052 @mscdex mscdex committed Jul 27, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 main.js
View
8 main.js
@@ -225,12 +225,12 @@ Request.prototype.init = function (options) {
self._parserErrorHandler = function (error) {
if (this.res) {
if (this.res.request) {
- this.res.request.emit('error', error);
+ this.res.request.emit('error', error)
} else {
- this.res.emit('error', error);
+ this.res.emit('error', error)
}
} else {
- this._httpMessage.emit('error', error);
+ this._httpMessage.emit('error', error)
}
}
@@ -509,7 +509,7 @@ Request.prototype.start = function () {
self.req = self.httpModule.request(self, function (response) {
if (response.connection.listeners('error').indexOf(self._parserErrorHandler) === -1) {
- response.connection.on('error', self._parserErrorHandler);
+ response.connection.on('error', self._parserErrorHandler)
}
if (self._aborted) return
if (self._paused) response.pause()

0 comments on commit 975ea90

Please sign in to comment.
Something went wrong with that request. Please try again.