From b4d9e03091988f122a5709a94159a8b935b5c39f Mon Sep 17 00:00:00 2001 From: Bruce Riley Date: Fri, 5 Jul 2024 13:24:12 -0500 Subject: [PATCH] Code review rework --- node/pkg/watchers/evm/watcher.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/node/pkg/watchers/evm/watcher.go b/node/pkg/watchers/evm/watcher.go index bce6102f49..dfaa0bbb97 100644 --- a/node/pkg/watchers/evm/watcher.go +++ b/node/pkg/watchers/evm/watcher.go @@ -903,10 +903,8 @@ var blockNotFoundErrors = map[string]struct{}{ // canRetryGetBlockTime returns true if the error returned by getBlockTime warrants doing a retry. func canRetryGetBlockTime(err error) bool { - if _, exists := blockNotFoundErrors[err.Error()]; exists { - return true - } - return false + _, exists := blockNotFoundErrors[err.Error()] + return exists } // waitForBlockTime is a go routine that repeatedly attempts to read the block time for a single log event. It is used when the initial attempt to read