From 2f4c5856b1368226ed140c9e8d6a9628837125a7 Mon Sep 17 00:00:00 2001 From: sherpalden Date: Mon, 16 Dec 2024 15:14:57 +0545 Subject: [PATCH] fix: remove unncessary error handling --- relayer/chains/evm/provider.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/relayer/chains/evm/provider.go b/relayer/chains/evm/provider.go index ddbec03e..3b503e6d 100644 --- a/relayer/chains/evm/provider.go +++ b/relayer/chains/evm/provider.go @@ -201,11 +201,7 @@ func (p *Provider) WaitForResults(ctx context.Context, tx *ethTypes.Transaction) // handle txn not found case: if time.Since(startTime) > DefaultTxConfirmationTimeout { - if err != nil { - return txReceipt, err - } else { - return txReceipt, fmt.Errorf("tx confirmation timed out [tx hash: %s]", tx.Hash()) - } + return txReceipt, fmt.Errorf("tx confirmation timed out [tx hash: %s]", tx.Hash()) } } }