Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
neogopher committed Dec 5, 2024
1 parent d59e7d4 commit 689a2d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controllers/resources/nodes/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ func (s *nodeSyncer) ModifyController(ctx *synccontext.RegisterContext, bld *bui
}

// only used when scheduler is enabled
func enqueueNonVclusterPod(old, new client.Object, q workqueue.RateLimitingInterface) {
pod, ok := new.(*corev1.Pod)
func enqueueNonVclusterPod(old, newObj client.Object, q workqueue.RateLimitingInterface) {
pod, ok := newObj.(*corev1.Pod)
if !ok {
klog.Errorf("invalid type passed to pod handler: %T", new)
klog.Errorf("invalid type passed to pod handler: %T", newObj)
return
}
// skip if node name missing
Expand Down

0 comments on commit 689a2d6

Please sign in to comment.