Commit 558d0cc6 authored by Mike Danese's avatar Mike Danese

Merge pull request #19617 from hongchaodeng/watch_cache

small refactor on watch cache
parents 82509a46 821a1963
...@@ -166,8 +166,6 @@ func (w *watchCache) processEvent(event watch.Event, resourceVersion uint64, upd ...@@ -166,8 +166,6 @@ func (w *watchCache) processEvent(event watch.Event, resourceVersion uint64, upd
var prevObject runtime.Object var prevObject runtime.Object
if exists { if exists {
prevObject = previous.(runtime.Object) prevObject = previous.(runtime.Object)
} else {
prevObject = nil
} }
watchCacheEvent := watchCacheEvent{event.Type, event.Object, prevObject} watchCacheEvent := watchCacheEvent{event.Type, event.Object, prevObject}
if w.onEvent != nil { if w.onEvent != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment