Skip to content

Commit

Permalink
golangci-lint: remove potential nil pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Nov 29, 2024
1 parent a81127a commit b550e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (pnc *PodNetworksController) handleResult(
if err != nil {
currentRetries := pnc.workqueue.NumRequeues(namespacedPodName)
if currentRetries <= maxRetries {
klog.Errorf("re-queued request for: %s. Error: %v", *namespacedPodName, err)
klog.Errorf("re-queued request for: %s. Error: %v", namespacedPodNameString, err)
pnc.workqueue.AddRateLimited(namespacedPodName)
return err
}
Expand Down

0 comments on commit b550e4c

Please sign in to comment.