Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
added check for no metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Loretz committed Apr 29, 2015
1 parent 6061cf2 commit db6c0f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions numerous.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,11 @@ Numerous.prototype.getChannelMetricsWithSourceClassV2Paged = function(sourceClas
callback(err, res);
} else {
metrics = res.metrics;
metrics.forEach(function(item) {
allMetrics.push(item);
});
if(metrics.length > 0) {
metrics.forEach(function(item) {
allMetrics.push(item);
});
}
sourceClassMetricURL = res.nextURL;
callback();
}
Expand Down

0 comments on commit db6c0f7

Please sign in to comment.