Skip to content

Commit

Permalink
Solve some bugs reported by SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr committed Dec 13, 2023
1 parent 4f81da5 commit 54659b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>) {
try {
await recordFunc(this.recorder);
await this.recorder.flush();
Expand Down

0 comments on commit 54659b6

Please sign in to comment.