Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Mar 26, 2024
1 parent 5352ee0 commit 1496957
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extension/src/flow-cli/cli-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
}
}

Expand Down

0 comments on commit 1496957

Please sign in to comment.