mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 11:37:49 +00:00
chore: enable consistent-return
This commit is contained in:
parent
bc27278d6d
commit
0ebeee8b0d
68 changed files with 223 additions and 107 deletions
|
|
@ -193,6 +193,7 @@ async function resolveInstallation(
|
|||
fail(
|
||||
`missing repo context; pass -R owner/repo, set GH_REPO, or set ${INSTALLATION_ID_ENV} for a direct installation lookup`,
|
||||
);
|
||||
throw new Error("unreachable");
|
||||
}
|
||||
|
||||
async function createInstallationToken(
|
||||
|
|
|
|||
|
|
@ -413,4 +413,5 @@ export function filterRecordsForReport(
|
|||
case "public-surface-usage":
|
||||
return records;
|
||||
}
|
||||
throw new Error("Unsupported topology report");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ function extractOwner(relPath: string): string | null {
|
|||
case "test":
|
||||
return null;
|
||||
}
|
||||
throw new Error("Unsupported topology scope");
|
||||
}
|
||||
|
||||
function extractExtensionId(relPath: string): string | null {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ export function installProcessWarningFilter() {
|
|||
return;
|
||||
}
|
||||
|
||||
return Reflect.apply(originalEmitWarning, process, args);
|
||||
Reflect.apply(originalEmitWarning, process, args);
|
||||
return;
|
||||
};
|
||||
|
||||
globalThis[warningFilterKey] = { installed: true };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue