From 678ff3f6cd4fd7818187c208b225704a8b3b8f13 Mon Sep 17 00:00:00 2001 From: John Saigle Date: Tue, 21 Jan 2025 14:01:59 -0500 Subject: [PATCH] Fix linter errors --- node/pkg/governor/governor.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/node/pkg/governor/governor.go b/node/pkg/governor/governor.go index 38449d92f1..ed4004b521 100644 --- a/node/pkg/governor/governor.go +++ b/node/pkg/governor/governor.go @@ -128,10 +128,7 @@ type ( // valid checks whether a pipe is valid. A pipe is invalid if both chain IDs are equal. func (p *pipe) valid() bool { - if p.first == p.second { - return false - } - return true + return p.first != p.second } // equals checks whether two corrdidors are equal. This method exists to demonstrate that the ordering of the @@ -956,9 +953,7 @@ func computeValue(amount *big.Int, token *tokenEntry) (uint64, error) { } // tryAddFlowCancelTransfer adds inverse transfer to destination chain entry if this asset can cancel flows. -func (gov *ChainGovernor) tryAddFlowCancelTransfer(transfer *transfer) (added bool, err error) { - added = false - +func (gov *ChainGovernor) tryAddFlowCancelTransfer(transfer *transfer) (bool, error) { originChain := transfer.dbTransfer.OriginChain originAddr := transfer.dbTransfer.OriginAddress hash := transfer.dbTransfer.Hash