Skip to content

Commit

Permalink
Fix typo in watch error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckal777 committed Apr 3, 2024
1 parent bb56af9 commit 17a100e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workload/node_controller.go
Expand Up @@ -108,7 +108,7 @@ func (c *NodeController) AttachTo(nodeInformer corev1_informers.NodeInformer) er
return err
}
err = nodeInformer.Informer().SetWatchErrorHandler(func(r *cache.Reflector, err error) {
if err != nil {
if err == nil {
return
}
if !errors.IsUnauthorized(err) {
Expand Down

0 comments on commit 17a100e

Please sign in to comment.