Skip to content

Commit

Permalink
Merge pull request cosmos#260 from celestiaorg/adlerjohn/break-switch
Browse files Browse the repository at this point in the history
Break out of loop instead of doing nothing
  • Loading branch information
adlerjohn authored Jan 26, 2022
2 parents 2d7db8b + cb65cfa commit 37de59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (n *Node) headerPublishLoop(ctx context.Context) {
n.Logger.Error("failed to gossip block header", "error", err)
}
case <-ctx.Done():
break
return
}
}
}
Expand Down

0 comments on commit 37de59b

Please sign in to comment.