From a8f21ba03f053a90e7ee0048a6cd5d47348fd238 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Tue, 2 Jan 2024 16:52:37 -0600 Subject: [PATCH] style: linter rule for floating promises --- src/commands/doctor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/doctor.ts b/src/commands/doctor.ts index 755203e4..7c4b7733 100644 --- a/src/commands/doctor.ts +++ b/src/commands/doctor.ts @@ -17,7 +17,7 @@ import { ProxyAgent } from 'proxy-agent'; import { Doctor as SFDoctor, SfDoctor, SfDoctorDiagnosis } from '../doctor.js'; import { DiagnosticStatus } from '../diagnostics.js'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-info', 'doctor'); export default class Doctor extends SfCommand { @@ -97,7 +97,7 @@ export default class Doctor extends SfCommand { this.tasks.push(this.config.runHook(eventName, { doctor: this.doctor })); } }); - this.tasks = [...this.tasks, ...this.doctor.diagnose()]; + this.doctor.diagnose().map((p) => this.tasks.push(p)); } await Promise.all(this.tasks);