Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsaigle committed Jan 21, 2025
1 parent 35e937b commit 678ff3f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions node/pkg/governor/governor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 678ff3f

Please sign in to comment.