Skip to content

Commit b11cc95

Browse files
committed
lib: skip shouldReport on counter as report will do it anyway
1 parent 82ea640 commit b11cc95

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/internal/perf/metrics.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,6 @@ class Counter extends Metric {
297297
* @param {object} [meta] Additional metadata to include with the report.
298298
*/
299299
increment(n = 1, meta) {
300-
if (!this.shouldReport) return;
301-
302300
if (typeof n === 'object') {
303301
meta = n;
304302
n = 1;
@@ -314,8 +312,6 @@ class Counter extends Metric {
314312
* @param {object} [meta] Additional metadata to include with the report.
315313
*/
316314
decrement(n = 1, meta) {
317-
if (!this.shouldReport) return;
318-
319315
if (typeof n === 'object') {
320316
meta = n;
321317
n = 1;

0 commit comments

Comments
 (0)