small refactor on watch cache

This commit is contained in:
Hongchao Deng 2016-01-13 14:00:59 -08:00
parent cfd046f73f
commit 821a196373

View File

@ -166,8 +166,6 @@ func (w *watchCache) processEvent(event watch.Event, resourceVersion uint64, upd
var prevObject runtime.Object
if exists {
prevObject = previous.(runtime.Object)
} else {
prevObject = nil
}
watchCacheEvent := watchCacheEvent{event.Type, event.Object, prevObject}
if w.onEvent != nil {