mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:38:26 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -94,7 +94,9 @@ export async function openFileWithinRoot(params: {
|
||||
return { handle, realPath, stat };
|
||||
} catch (err) {
|
||||
await handle.close().catch(() => {});
|
||||
if (err instanceof SafeOpenError) throw err;
|
||||
if (err instanceof SafeOpenError) {
|
||||
throw err;
|
||||
}
|
||||
if (isNotFoundError(err)) {
|
||||
throw new SafeOpenError("not-found", "file not found");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user