Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed May 22, 2024
1 parent 018b67a commit 3198913
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/emulator/emulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import {send, build, getBlock, decode, config} from "@onflow/fcl"
import {Logger, LOGGER_LEVELS} from "./logger"
import {getAvailablePorts, getFlowVersion} from "../utils"
import { satisfies } from "semver"
import {satisfies} from "semver"

const {spawn} = require("child_process")

Expand Down Expand Up @@ -87,7 +87,11 @@ export class Emulator {

// Get version of CLI
const flowVersion = await getFlowVersion(this.execName)
if (!satisfies(flowVersion.raw, SUPPORTED_FLOW_CLI_VERSIONS, { includePrerelease: true })) {
if (
!satisfies(flowVersion.raw, SUPPORTED_FLOW_CLI_VERSIONS, {
includePrerelease: true,
})
) {
throw new Error(
`Unsupported Flow CLI version: ${flowVersion.raw}. Supported versions: ${SUPPORTED_FLOW_CLI_VERSIONS}`
)
Expand Down

0 comments on commit 3198913

Please sign in to comment.