Skip to content

Commit

Permalink
chore: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Dec 7, 2023
1 parent 6d2077f commit f73838f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/hooks/telemetryPrerun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ const hook: Hook.Prerun = async function (options): Promise<void> {
}

try {
const path = await import('node:path');
const { Performance } = await import('@oclif/core');
const { Lifecycle } = await import('@salesforce/core');
const { default: Telemetry } = await import('../telemetry.js');
const { CommandExecution } = await import('../commandExecution.js');
const [path, Performance, Lifecycle, Telemetry, CommandExecution] = await Promise.all([
await import('node:path'),
(await import('@oclif/core')).Performance,
(await import('@salesforce/core')).Lifecycle,
(await import('../telemetry.js')).default,
(await import('../commandExecution.js')).CommandExecution,
]);

const errors: Array<{ event: JsonMap; error: SfError }> = [];

Expand Down

0 comments on commit f73838f

Please sign in to comment.