Skip to content

Commit

Permalink
remove extraneous http status check
Browse files Browse the repository at this point in the history
  • Loading branch information
frankchn committed May 11, 2021
1 parent 46d3593 commit 0fe7082
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ export default class Crypto {
downloadPromises.push(
axios.get(attachmentRecords[fieldId], { responseType: 'json' })
.then((downloadResponse) => {
if (downloadResponse.status !== 200) throw new Error("Download failed")

const encryptedAttachment: EncryptedAttachmentContent = downloadResponse.data
const encryptedFile: EncryptedFileContent = {
submissionPublicKey: encryptedAttachment.encryptedFile.submissionPublicKey,
Expand Down

0 comments on commit 0fe7082

Please sign in to comment.