Skip to content

Commit

Permalink
refactor(proof.ts): remove unused try catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanmyrza committed Mar 2, 2024
1 parent 428c6c8 commit b30a1b3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/shared/repositories/proof/proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,8 @@ export class Proof {
? this.timestamp
: this.timestamp * MILLISECONDS_PER_SECOND;

try {
const serverTimestampInMilliseconds = Date.parse(this.uploadedAt ?? '');
return serverTimestampInMilliseconds || proofTimestampInMilliseconds;
} catch (error) {
return proofTimestampInMilliseconds;
}
const serverTimestampInMilliseconds = Date.parse(this.uploadedAt ?? '');
return serverTimestampInMilliseconds || proofTimestampInMilliseconds;
}

/**
Expand Down

0 comments on commit b30a1b3

Please sign in to comment.