mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-21 15:36:48 +00:00
ci: enforce code formatting checks for backend and frontend (#1536)
This commit is contained in:
@@ -33,9 +33,7 @@ async function readErrorDetail(
|
||||
response: Response,
|
||||
fallback: string,
|
||||
): Promise<string> {
|
||||
const error = await response
|
||||
.json()
|
||||
.catch(() => ({ detail: fallback }));
|
||||
const error = await response.json().catch(() => ({ detail: fallback }));
|
||||
return error.detail ?? fallback;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user