style: fix formatting

This commit is contained in:
Robby
2026-01-22 17:47:52 +00:00
parent 0873351401
commit 768d5ccafe
2 changed files with 10 additions and 2 deletions

View File

@@ -240,7 +240,14 @@ export async function incrementCompactionCount(params: {
/** Token count after compaction - if provided, updates session token counts */
tokensAfter?: number;
}): Promise<number | undefined> {
const { sessionEntry, sessionStore, sessionKey, storePath, now = Date.now(), tokensAfter } = params;
const {
sessionEntry,
sessionStore,
sessionKey,
storePath,
now = Date.now(),
tokensAfter,
} = params;
if (!sessionStore || !sessionKey) return undefined;
const entry = sessionStore[sessionKey] ?? sessionEntry;
if (!entry) return undefined;