mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 13:34:58 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -28,7 +28,9 @@ export async function shouldSuggestMemorySystem(workspaceDir: string): Promise<b
|
||||
const agentsPath = path.join(workspaceDir, DEFAULT_AGENTS_FILENAME);
|
||||
try {
|
||||
const content = await fs.promises.readFile(agentsPath, "utf-8");
|
||||
if (/memory\.md/i.test(content)) return false;
|
||||
if (/memory\.md/i.test(content)) {
|
||||
return false;
|
||||
}
|
||||
} catch {
|
||||
// no AGENTS.md or unreadable; treat as missing memory guidance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user