Skip to content

Commit

Permalink
chore: simplify response check
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Shaw <[email protected]>
  • Loading branch information
joaosa and alanshaw committed Jun 4, 2024
1 parent 581cb82 commit 46a11b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upload-client/src/receipts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 46a11b9

Please sign in to comment.