Skip to content

Commit 569e55e

Browse files
stainless-botRobertCraigie
authored andcommitted
chore(internal): remove unnecessary todo
1 parent 28d3e35 commit 569e55e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/internal/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const castToError = (err: any): Error => {
2222
// @ts-ignore - not all envs have native support for cause yet
2323
if (err.cause && !error.cause) error.cause = err.cause;
2424
if (err.name) error.name = err.name;
25-
throw error;
25+
return error;
2626
}
2727
} catch {}
2828
try {

src/internal/parse.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ export async function defaultParseResponse<T>(
5252
}
5353

5454
const text = await response.text();
55-
56-
// TODO handle blob, arraybuffer, other content types, etc.
5755
return text as unknown as T;
5856
})();
5957
loggerFor(client).debug(

0 commit comments

Comments
 (0)