Skip to content

Commit

Permalink
Fix crashing issues#26
Browse files Browse the repository at this point in the history
see wavefrontHQ#26

variable is used before declaration
  • Loading branch information
chengB12 authored Oct 5, 2021
1 parent c185c7e commit 965e2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wavefront-direct-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class WavefrontDirectReporter extends ScheduledReporter {

if (points.length != 0) {
if (points.length >= self.batchSize) {
chunks = getChunks(points, self.batchSize);
const chunks = getChunks(points, self.batchSize);
for (i = 0; i < chunks.length; i++) {
self.reportPoints(chunks[i]);
}
Expand Down

0 comments on commit 965e2e2

Please sign in to comment.