Skip to content

Commit

Permalink
Fixup condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Nov 17, 2024
1 parent 1984848 commit 372e37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tm2/pkg/bft/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ func makeNodeInfo(

// Validate the node info
err = nodeInfo.Validate()
if !goErrors.Is(err, p2pTypes.ErrUnspecifiedIP) {
if err != nil && !goErrors.Is(err, p2pTypes.ErrUnspecifiedIP) {
return p2pTypes.NodeInfo{}, fmt.Errorf("unable to validate node info, %w", err)
}

Expand Down

0 comments on commit 372e37d

Please sign in to comment.