From 54659b68d8c266c2c14132c01a650f86ad0c1c75 Mon Sep 17 00:00:00 2001 From: Pedro Ramos Date: Wed, 13 Dec 2023 14:34:07 +0100 Subject: [PATCH] Solve some bugs reported by SonarCloud --- src/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base.ts b/src/base.ts index c7c60672594..f2c043539c3 100644 --- a/src/base.ts +++ b/src/base.ts @@ -52,7 +52,7 @@ export default abstract class extends Command { await this.recordActionMetric(callable); } - async recordActionMetric(recordFunc: (recorder: Recorder) => void) { + async recordActionMetric(recordFunc: (recorder: Recorder) => Promise) { try { await recordFunc(this.recorder); await this.recorder.flush();