Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove unnecessary toString call. #120

Merged
merged 1 commit into from

2 participants

@coderunr

The chunk will be cast to string automatically since body is a string.

@coderunr coderunr Remove unnecessary toString call.
The chunk will be cast to string automatically since body is a string.
d294f81
@fzaninotto fzaninotto merged commit 840aef2 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 5, 2013
  1. @coderunr

    Remove unnecessary toString call.

    coderunr authored
    The chunk will be cast to string automatically since body is a string.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/monitor.js
View
2  lib/monitor.js
@@ -82,7 +82,7 @@ Monitor.prototype.findChecksNeedingPoll = function(callback) {
}
var body = '';
res.on('data', function(chunk) {
- body += chunk.toString();
+ body += chunk;
});
res.on('end', function() {
callback(null, JSON.parse(body));
Something went wrong with that request. Please try again.