Skip to content

Commit 319d2b6

Browse files
committed
prepare release
1 parent 05a3af5 commit 319d2b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/promise/HttpPromise.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function safeThen<P, R>(thenFunction: PromiseFunction<P, R>, debugContext?: obje
6161
} catch (error) {
6262
if (isHttpError(error)) {
6363
// If the then function has thrown a HttpError object, we assume this is legitimate
64+
// eslint-disable-next-line @typescript-eslint/no-throw-literal
6465
throw error;
6566
}
6667
logger.error('Error applying then function', { debugContext, parameter, error });
@@ -80,6 +81,7 @@ function safeCatch<R>(catchFunction: PromiseFunction<HttpError, R>, debugContext
8081
} catch (error) {
8182
if (isHttpError(error)) {
8283
// If the catch function has thrown a HttpError object, we assume this is legitimate
84+
// eslint-disable-next-line @typescript-eslint/no-throw-literal
8385
throw error;
8486
}
8587
logger.error('Error applying catch function', { debugContext, httpError, error });

0 commit comments

Comments
 (0)