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:
1 parent
87c01d9966
commit
bb3105d7b5
1 file changed
+1
-5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user