From b38ba90c382bbe1b94be7e7c4b3ba04d49218da1 Mon Sep 17 00:00:00 2001 From: mfw78 Date: Sun, 8 Oct 2023 12:41:17 +0000 Subject: [PATCH] fix: remove unrequired null handling --- src/domain/chainContext.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/chainContext.ts b/src/domain/chainContext.ts index 4b598e9..9f50fd6 100644 --- a/src/domain/chainContext.ts +++ b/src/domain/chainContext.ts @@ -327,7 +327,7 @@ export class ChainContext { // sleep for 5 seconds await asyncSleep(WATCHDOG_FREQUENCY); const now = Math.floor(new Date().getTime() / 1000); - const timeElapsed = now - (lastBlockReceived?.timestamp ?? 0); + const timeElapsed = now - lastBlockReceived.timestamp; log.debug(`Time since last block processed: ${timeElapsed}ms`);