From 95788c86540d90ab1008ffa2d82f492d7bafdd78 Mon Sep 17 00:00:00 2001 From: Taras Mankovski Date: Sat, 14 Feb 2026 11:40:31 -0500 Subject: [PATCH] fix: apply Deno formatting Run deno fmt to fix formatting issues that were causing CI to fail. The original code was formatted with Prettier instead of Deno's formatter. --- tasks/bench.ts | 2 +- tasks/bench/scenarios/effect.recursion.ts | 5 +++-- tasks/bench/scenarios/scenario.ts | 7 ++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tasks/bench.ts b/tasks/bench.ts index 8c743d172..8393e8500 100644 --- a/tasks/bench.ts +++ b/tasks/bench.ts @@ -56,7 +56,7 @@ await main(function* (args) { for (let scenario of filter(scenarios, { include, exclude })) { tasks.push( yield* spawn(() => - runBenchmark(scenario, { ...options, type: "benchmark" }), + runBenchmark(scenario, { ...options, type: "benchmark" }) ), ); } diff --git a/tasks/bench/scenarios/effect.recursion.ts b/tasks/bench/scenarios/effect.recursion.ts index 4b38a6f8c..0acff9ee2 100644 --- a/tasks/bench/scenarios/effect.recursion.ts +++ b/tasks/bench/scenarios/effect.recursion.ts @@ -2,8 +2,9 @@ import { Effect } from "npm:effect"; import { call } from "../../../mod.ts"; import { scenario } from "./scenario.ts"; -await scenario("effect.recursion", (depth) => - call(() => Effect.runPromise(recurse(depth))) +await scenario( + "effect.recursion", + (depth) => call(() => Effect.runPromise(recurse(depth))), ); function recurse(depth: number): Effect.Effect { diff --git a/tasks/bench/scenarios/scenario.ts b/tasks/bench/scenarios/scenario.ts index 7e7cad349..68f0ae686 100644 --- a/tasks/bench/scenarios/scenario.ts +++ b/tasks/bench/scenarios/scenario.ts @@ -80,8 +80,9 @@ export function scenario( let startupTime = entryTimes.reduce((sum, time) => sum + time, 0); - let avgStartupTime = - entryTimes.length > 0 ? startupTime / entryTimes.length : 0; + let avgStartupTime = entryTimes.length > 0 + ? startupTime / entryTimes.length + : 0; let result = Ok({ avgTime, avgStartupTime, reps: options.repeat }); @@ -89,7 +90,7 @@ export function scenario( yield* each.next(); } - }), + }) ); } catch (error) { send({ type: "done", name, result: Err(error as Error) });