Skip to content

Commit

Permalink
removing extra lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gizas committed Jan 9, 2024
1 parent 05ed573 commit 8ad0d7c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kubernetes/eventhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,10 @@ func NewNamespacePodUpdater(handler podUpdaterHandlerFunc, store podUpdaterStore

// OnUpdate handles update events on namespaces.
func (n *namespacePodUpdater) OnUpdate(obj interface{}) {

ns, ok := obj.(*Namespace)
if !ok {
return
}

// n.store.List() returns a snapshot at this point. If a delete is received
// from the main watcher, this loop may generate an update event after the
// delete is processed, leaving configurations that would never be deleted.
Expand Down Expand Up @@ -230,7 +228,6 @@ func (n *nodePodUpdater) OnUpdate(obj interface{}) {
if !ok {
return
}

// n.store.List() returns a snapshot at this point. If a delete is received
// from the main watcher, this loop may generate an update event after the
// delete is processed, leaving configurations that would never be deleted.
Expand Down

0 comments on commit 8ad0d7c

Please sign in to comment.