mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 03:06:51 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -77,7 +77,9 @@ describe("memory manager sync failures", () => {
|
||||
|
||||
const result = await getMemorySearchManager({ cfg, agentId: "main" });
|
||||
expect(result.manager).not.toBeNull();
|
||||
if (!result.manager) throw new Error("manager missing");
|
||||
if (!result.manager) {
|
||||
throw new Error("manager missing");
|
||||
}
|
||||
manager = result.manager;
|
||||
const syncSpy = vi.spyOn(manager, "sync");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user