Skip to content

Commit

Permalink
remove return inside a for loop
Browse files Browse the repository at this point in the history
Resolves #49 If the node has more than one anchor peer, it will return before all existent peers have been added again to existingAnchorPeers

Signed-off-by: Ernesto Olivier <ernesto.olivier@nexplore.com>
  • Loading branch information
elolivier-nxp authored and denyeart committed May 1, 2023
1 parent 2038a80 commit c29f04f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions configtx/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,6 @@ func (a *ApplicationOrg) RemoveAnchorPeer(anchorPeerToRemove Address) error {
if err != nil {
return fmt.Errorf("failed to remove anchor peer %v from org %s: %v", anchorPeerToRemove, a.name, err)
}

return nil
}
}

Expand Down

0 comments on commit c29f04f

Please sign in to comment.