Skip to content

Commit

Permalink
chore(http): Fix throw void
Browse files Browse the repository at this point in the history
As generateHttpError already thorw error and returns void
  • Loading branch information
xpol committed Jan 7, 2025
1 parent 596df60 commit 2749d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/health-indicator/http/http.health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class HttpHealthIndicator extends HealthIndicator {
throw error;
}
if (!error.response) {
throw this.generateHttpError(key, error);
this.generateHttpError(key, error);
}

response = error.response;
Expand All @@ -165,7 +165,7 @@ export class HttpHealthIndicator extends HealthIndicator {

if (!isHealthy) {
if (axiosError) {
throw this.generateHttpError(key, axiosError);
this.generateHttpError(key, axiosError);
}

throw new HealthCheckError(
Expand Down

0 comments on commit 2749d70

Please sign in to comment.