Skip to content

Commit

Permalink
Explicitly comment empty block as empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
froatsnook committed Apr 13, 2015
1 parent 005cf77 commit 759ffc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion request.js
Expand Up @@ -1210,7 +1210,9 @@ Request.prototype.onRequestResponse = function (response) {
if (self._json) {
try {
response.body = JSON.parse(response.body, self._jsonReviver)
} catch (e) {}
} catch (e) {
// empty
}
}
debug('emitting complete', self.uri.href)
if (typeof response.body === 'undefined' && !self._json) {
Expand Down

0 comments on commit 759ffc3

Please sign in to comment.