Skip to content

Commit 87097d9

Browse files
committed
style: apply prefer-optional-chain lint fix in tests
1 parent 90aa965 commit 87097d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎nemoclaw/src/commands/migration-state.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ describe("commands/migration-state", () => {
614614

615615
// Read the sandbox-bundle openclaw.json
616616
const sandboxConfigEntry = store.get(bundle.preparedStateDir + "/openclaw.json");
617-
if (!sandboxConfigEntry || !sandboxConfigEntry.content) {
617+
if (!sandboxConfigEntry?.content) {
618618
expect.unreachable("sandbox config entry should exist with content");
619619
return;
620620
}
@@ -668,7 +668,7 @@ describe("commands/migration-state", () => {
668668
}
669669

670670
const sandboxConfigEntry = store.get(bundle.preparedStateDir + "/openclaw.json");
671-
if (!sandboxConfigEntry || !sandboxConfigEntry.content) {
671+
if (!sandboxConfigEntry?.content) {
672672
expect.unreachable("sandbox config entry should exist with content");
673673
return;
674674
}
@@ -809,7 +809,7 @@ describe("commands/migration-state", () => {
809809

810810
// Check the snapshot-level openclaw.json (not sandbox-bundle)
811811
const snapshotConfigEntry = store.get(bundle.snapshotDir + "/openclaw/openclaw.json");
812-
if (!snapshotConfigEntry || !snapshotConfigEntry.content) {
812+
if (!snapshotConfigEntry?.content) {
813813
expect.unreachable("snapshot config entry should exist with content");
814814
return;
815815
}

0 commit comments

Comments
 (0)