From 46a11b956b6f1871d51acf4d31921720992a5d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Sousa=20Andrade?= <659718+joaosa@users.noreply.github.com> Date: Tue, 4 Jun 2024 12:20:49 +0100 Subject: [PATCH] chore: simplify response check Co-authored-by: Alan Shaw --- packages/upload-client/src/receipts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/upload-client/src/receipts.js b/packages/upload-client/src/receipts.js index 824de0961..f0abc43fd 100644 --- a/packages/upload-client/src/receipts.js +++ b/packages/upload-client/src/receipts.js @@ -99,7 +99,7 @@ export class Receipt { const url = new URL(taskCid.toString(), this.receiptsEndpoint) const workflowResponse = await this.fetch(url) /* c8 ignore start */ - if (!workflowResponse.ok && workflowResponse.status === 404) { + if (workflowResponse.status === 404) { return { error: new ReceiptNotFound(taskCid), }