Skip to content

Commit 85752ed

Browse files
authored
fix(lint): replace non-null assertions failing biome ci on main (#3230)
1 parent ae6e2c6 commit 85752ed

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/agent/src/server/agent-server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,10 @@ export class AgentServer {
13881388
});
13891389

13901390
this.sessionReadyBootMs = Math.round(process.uptime() * 1000);
1391-
this.sessionInitMs = Math.max(0, Date.now() - this.barrierReleasedAtMs!);
1391+
this.sessionInitMs = Math.max(
1392+
0,
1393+
Date.now() - (this.barrierReleasedAtMs ?? Date.now()),
1394+
);
13921395
this.logger.debug("Session initialized successfully", {
13931396
bootMs: this.sessionReadyBootMs,
13941397
sessionInitMs: this.sessionInitMs,

packages/workspace-server/src/services/skills/skills.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ export class SkillsService {
538538
const MAX_RESOLVED_SKILLS = 50;
539539

540540
while (queue.length > 0) {
541-
const ref = queue.shift()!;
541+
const ref = queue.shift();
542+
if (!ref) break;
542543
const key = `${ref.source}:${ref.path}`;
543544
if (seen.has(key)) continue;
544545
if (resolved.length >= MAX_RESOLVED_SKILLS) {

0 commit comments

Comments
 (0)