From bb3105d7b5e4a1bf7faed0016c11cdc3fe8f503e Mon Sep 17 00:00:00 2001 From: _Kerman Date: Fri, 21 Aug 2026 11:49:52 +0800 Subject: [PATCH] refactor(apiproxy): restore the single-line listProjectionsFor signature An intermediate cache iteration made cachedSnapshot async, which forced listProjectionsFor onto a multi-line async signature; the final design kept the sync read but the formatting residue stayed. No behavior change. --- packages/host/apiproxy/src/api-proxy.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/host/apiproxy/src/api-proxy.ts b/packages/host/apiproxy/src/api-proxy.ts index 43ba8cd05c..887e33d6b5 100644 --- a/packages/host/apiproxy/src/api-proxy.ts +++ b/packages/host/apiproxy/src/api-proxy.ts @@ -805,11 +805,7 @@ function projectionsFor(ctx: Context, session: Session): SessionProjectionsBlock * empty value set — yields an absent block: a listing without projections * is degraded, never broken. */ -function listProjectionsFor( - ctx: Context, - meta: SessionHeader, - session: Session | undefined, -): SessionProjectionsBlock | undefined { +function listProjectionsFor(ctx: Context, meta: SessionHeader, session: Session | undefined): SessionProjectionsBlock | undefined { try { const block = session !== undefined ? ctx.get('sessionProjections')?.snapshot(session)