Skip to content

Commit

Permalink
use nullish check instead, as per mollie#358 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
janpaepke committed Sep 10, 2024
1 parent a29d89b commit e21a180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/communication/NetworkClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function processFetchResponse(response: ResponseWithIdempotencyKey) {
return body;
}
// Request was not successful, but the response body contains an error message.
if (body) {
if (null != body) {
throw ApiError.createFromResponse(body, response.idempotencyKey);
}
// Request was not successful.
Expand Down

0 comments on commit e21a180

Please sign in to comment.