Skip to content

Commit

Permalink
use lo.FromPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Oct 18, 2024
1 parent bda86f3 commit 4e8aae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/command/up/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func getCluster(cd *cd.Plural) (id string, err error) {
}

for _, cluster := range clusters {
if *cluster.Node.Handle == "mgmt" {
if lo.FromPtr(cluster.Node.Handle) == "mgmt" {
return cluster.Node.ID, nil
}
}
Expand Down

0 comments on commit 4e8aae3

Please sign in to comment.