Permalink
Browse files

Remove unnecessary toString call.

The chunk will be cast to string automatically since body is a string.
  • Loading branch information...
1 parent fe580f7 commit d294f81af95903064ec9d56cc4a720915d5696ba @coderunr coderunr committed Mar 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/monitor.js
View
@@ -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));

0 comments on commit d294f81

Please sign in to comment.