Skip to content

Commit 1a9f87e

Browse files
committed
fix: Remove useless date constructor
1 parent 32937ce commit 1a9f87e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/popup/services/sync.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class SyncService extends BaseSyncService {
7777
await super.setLastSync(date);
7878

7979
// Update remote sync date only for non-zero date, which is used for logout
80-
if (date.getTime() !== new Date(0).getTime()) {
80+
if (date.getTime() !== 0) {
8181
await this.cozyClientService.updateSynchronizedAt();
8282
}
8383
}

0 commit comments

Comments
 (0)