Skip to content

Commit 63d032f

Browse files
committed
fix(shared): Fix code style issues in proof.ts
1 parent 493a3fc commit 63d032f

File tree

1 file changed

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

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class Proof {
5858

5959
/**
6060
* Used to sort the assets in the VERIFIED tab either by timestamp or uploadedAt (if available).
61-
* Since timestamp getter now ensures values are always in milliseconds, we don't need
61+
* Since timestamp getter now ensures values are always in milliseconds, we don't need
6262
* to perform the seconds-to-milliseconds conversion here.
6363
*/
6464
get uploadedAtOrTimestamp() {
@@ -73,16 +73,17 @@ export class Proof {
7373
* Note: After restoring or syncing with the backend assets, the timestamp will be in seconds.
7474
* For more details, refer to https://github.com/numbersprotocol/storage-backend/issues/976
7575
*
76-
* Note: Milliseconds are typically 13 digits long (after 2001), while seconds are typically 10 digits long.
76+
* Note: Milliseconds are typically 13 digits long (after 2001), while seconds are
77+
* typically 10 digits long.
7778
* We use a threshold-based approach to detect and convert between these formats.
78-
*
79-
* This getter ensures timestamps are always returned in milliseconds regardless of
79+
*
80+
* This getter ensures timestamps are always returned in milliseconds regardless of
8081
* how they're stored (seconds or milliseconds).
8182
*/
8283
get timestamp() {
8384
const MILLISECONDS_PER_SECOND = 1000;
8485
const MILLISECONDS_THRESHOLD = 10000000000; // 10^10, timestamps after March 2001
85-
86+
8687
// Convert to milliseconds if the timestamp is in seconds
8788
return this.truth.timestamp > MILLISECONDS_THRESHOLD
8889
? this.truth.timestamp

0 commit comments

Comments
 (0)