Skip to content

Commit dbd0354

Browse files
committed
refactor(proof.ts): remove unused try catch block
1 parent a2d591b commit dbd0354

File tree

1 file changed

+2
-6
lines changed
  • src/app/shared/repositories/proof

1 file changed

+2
-6
lines changed

src/app/shared/repositories/proof/proof.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,8 @@ export class Proof {
6161
? this.timestamp
6262
: this.timestamp * MILLISECONDS_PER_SECOND;
6363

64-
try {
65-
const serverTimestampInMilliseconds = Date.parse(this.uploadedAt ?? '');
66-
return serverTimestampInMilliseconds || proofTimestampInMilliseconds;
67-
} catch (error) {
68-
return proofTimestampInMilliseconds;
69-
}
64+
const serverTimestampInMilliseconds = Date.parse(this.uploadedAt ?? '');
65+
return serverTimestampInMilliseconds || proofTimestampInMilliseconds;
7066
}
7167

7268
/**

0 commit comments

Comments
 (0)