Skip to content

Commit c26b03b

Browse files
committed
cleanup
1 parent 8f7e81c commit c26b03b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/blob/src/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,9 @@ async function tryGetErrorMessageFromResponse(res: Response) {
325325
const jsonBody = await res.json().catch(() => null);
326326
if (!jsonBody) return;
327327
if (typeof jsonBody !== 'object') return;
328-
if ('error' in jsonBody && typeof jsonBody.error === 'string')
328+
if ('error' in jsonBody && typeof jsonBody.error === 'string') {
329329
return jsonBody.error;
330+
}
330331
}
331332

332333
function isAbsoluteUrl(url: string): boolean {

0 commit comments

Comments
 (0)