Skip to content

Commit

Permalink
Remove extra if err check in configmap builder
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Jan 28, 2025
1 parent 9dd3a54 commit 9f788b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/fullnode/configmap_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ func BuildConfigMaps(crd *cosmosv1.CosmosFullNode, peers Peers, nodeKeys NodeKey
if !ok {
nk, err := randNodeKey()
if err != nil {
if err != nil {
return nil, kube.UnrecoverableError(fmt.Errorf("generate node key: %w", err))
}
return nil, kube.UnrecoverableError(fmt.Errorf("generate node key: %w", err))
}

marshalledNodeKey, err := json.Marshal(nk)
Expand Down

0 comments on commit 9f788b3

Please sign in to comment.