From 1496957d7b88d613618448ab5ef1b1ca27ef1dcc Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Tue, 26 Mar 2024 12:38:45 -0700 Subject: [PATCH] format --- extension/src/flow-cli/cli-provider.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extension/src/flow-cli/cli-provider.ts b/extension/src/flow-cli/cli-provider.ts index ab7fb702..38286657 100644 --- a/extension/src/flow-cli/cli-provider.ts +++ b/extension/src/flow-cli/cli-provider.ts @@ -100,7 +100,7 @@ export class CliProvider { ))).stdout // Format version string from output - let versionInfo: FlowVersionOutput = JSON.parse(buffer) + const versionInfo: FlowVersionOutput = JSON.parse(buffer) // Ensure user has a compatible version number installed const version: semver.SemVer | null = semver.parse(versionInfo.version) @@ -109,8 +109,7 @@ export class CliProvider { return { name: bin, version } } catch { // Fallback to old method if JSON is not supported/fails - console.warn(`Failed to fetch binary version information for "${bin}", falling back to old method`) - return this.#fetchBinaryInformationOld(bin) + return await this.#fetchBinaryInformationOld(bin) } }