From b4fdefae328f2ac1982743a8207aaeda8a9409c1 Mon Sep 17 00:00:00 2001 From: Lane Sawyer Date: Tue, 12 Nov 2024 13:03:51 -0800 Subject: [PATCH] fmt --- packages/scatterbrain/package.json | 2 +- packages/scatterbrain/src/abstract/async-frame.ts | 8 ++++---- packages/scatterbrain/src/abstract/render-server.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/scatterbrain/package.json b/packages/scatterbrain/package.json index 07935cd..5376029 100644 --- a/packages/scatterbrain/package.json +++ b/packages/scatterbrain/package.json @@ -58,4 +58,4 @@ "lodash": "^4.17.21", "regl": "^2.1.0" } -} \ No newline at end of file +} diff --git a/packages/scatterbrain/src/abstract/async-frame.ts b/packages/scatterbrain/src/abstract/async-frame.ts index a2e0eb3..ea32ba4 100644 --- a/packages/scatterbrain/src/abstract/async-frame.ts +++ b/packages/scatterbrain/src/abstract/async-frame.ts @@ -102,7 +102,7 @@ export function beginFrame< if (synchronous) { lifecycleCallback(event); } else { - Promise.resolve().then(() => lifecycleCallback(event)) + Promise.resolve().then(() => lifecycleCallback(event)); } }; @@ -158,10 +158,10 @@ export function beginFrame< } }; - reportStatus({ status: 'begin' }, true) + reportStatus({ status: 'begin' }, true); const interval = setInterval(() => doWorkOnQueue(interval), queueProcessingIntervalMS); if (queue.length > 0) { - doWorkOnQueue(interval, false) + doWorkOnQueue(interval, false); } return { cancelFrame: (reason?: string) => { @@ -169,7 +169,7 @@ export function beginFrame< abort.abort(new DOMException(reason, 'AbortError')); clearInterval(interval); reportStatus({ status: 'cancelled' }, true); - } + }, }; } diff --git a/packages/scatterbrain/src/abstract/render-server.ts b/packages/scatterbrain/src/abstract/render-server.ts index 664b538..2bf3b32 100644 --- a/packages/scatterbrain/src/abstract/render-server.ts +++ b/packages/scatterbrain/src/abstract/render-server.ts @@ -179,7 +179,7 @@ export class RenderServer { // this is a good thing for performance, but potentially confusing - so we do our book-keeping before we actually start rendering: const aboutToStart = this.clients.get(client); // this is the record we just put into the clients map - TS just wants to be sure it really exists: if (aboutToStart) { - aboutToStart.frame = renderFn(image, this.cache, hijack) + aboutToStart.frame = renderFn(image, this.cache, hijack); } } }