Skip to content

Commit

Permalink
staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Sep 26, 2024
1 parent b06049b commit eadb638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/helper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func initMode() {
} else {
zone, found := node.Labels[corev1.LabelZoneFailureDomainStable]
if !found {
zone, _ = node.Labels[corev1.LabelZoneFailureDomain]
zone = node.Labels[corev1.LabelZoneFailureDomain]
}
err := os.WriteFile(targetFile, []byte(zone), 0644) // #nosec G306
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubernetes/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GetZoneForNodeName(ctx context.Context, c client.Client, nodeName string) (
}
zone, found := node.Labels[corev1.LabelZoneFailureDomainStable]
if !found {
zone, _ = node.Labels[corev1.LabelZoneFailureDomain]
zone = node.Labels[corev1.LabelZoneFailureDomain]
}

nodeNameToZoneName[nodeName] = zone
Expand Down

0 comments on commit eadb638

Please sign in to comment.