Browse Source

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.
_Kerman 1 month ago
parent
commit
bb3105d7b5
1 changed files with 1 additions and 5 deletions
  1. 1 5
      packages/host/apiproxy/src/api-proxy.ts

+ 1 - 5
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)