mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:14:31 +00:00
fix(core): resolve post-rebase type errors
This commit is contained in:
@@ -365,6 +365,9 @@ async function readAllowFromStateForPathWithExists(
|
||||
if (cachedOrMissing) {
|
||||
return cachedOrMissing;
|
||||
}
|
||||
if (!stat) {
|
||||
return { entries: [], exists: false };
|
||||
}
|
||||
|
||||
const { value, exists } = await readJsonFile<AllowFromStore>(filePath, {
|
||||
version: 1,
|
||||
@@ -402,6 +405,9 @@ function readAllowFromStateForPathSyncWithExists(
|
||||
if (cachedOrMissing) {
|
||||
return cachedOrMissing;
|
||||
}
|
||||
if (!stat) {
|
||||
return { entries: [], exists: false };
|
||||
}
|
||||
|
||||
let raw = "";
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user