mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-22 11:58:46 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -8,7 +8,9 @@ function isNetworkError(error: unknown): boolean {
|
|||||||
if (error.message === "fetch failed") return true;
|
if (error.message === "fetch failed") return true;
|
||||||
const cause = (error as Error & { cause?: { code?: string } }).cause;
|
const cause = (error as Error & { cause?: { code?: string } }).cause;
|
||||||
const code = cause?.code;
|
const code = cause?.code;
|
||||||
return code === "ECONNREFUSED" || code === "ENOTFOUND" || code === "ETIMEDOUT";
|
return (
|
||||||
|
code === "ECONNREFUSED" || code === "ENOTFOUND" || code === "ETIMEDOUT"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user