mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 14:41:42 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -25,7 +25,9 @@ async function makeTempRoot() {
|
||||
afterEach(async () => {
|
||||
resetAutoMigrateLegacyStateForTest();
|
||||
resetAutoMigrateLegacyStateDirForTest();
|
||||
if (!tempRoot) return;
|
||||
if (!tempRoot) {
|
||||
return;
|
||||
}
|
||||
await fs.promises.rm(tempRoot, { recursive: true, force: true });
|
||||
tempRoot = null;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user