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.
This commit is contained in:
_Kerman
2026-08-21 11:49:52 +08:00
parent 87c01d9966
commit bb3105d7b5
+1 -5
View File
@@ -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)