mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:41:23 +00:00
chore: Enable typescript/no-explicit-any rule.
This commit is contained in:
@@ -77,8 +77,11 @@ async function dockerImageExists(image: string): Promise<boolean> {
|
||||
try {
|
||||
await runExec("docker", ["image", "inspect", image], { timeoutMs: 5_000 });
|
||||
return true;
|
||||
} catch (error: any) {
|
||||
const stderr = error?.stderr || error?.message || "";
|
||||
} catch (error) {
|
||||
const stderr =
|
||||
(error as { stderr: string } | undefined)?.stderr ||
|
||||
(error as { message: string } | undefined)?.message ||
|
||||
"";
|
||||
if (String(stderr).includes("No such image")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user