Skip to content

Commit

Permalink
renaming functions and providinng camelCase variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gizas committed Jan 9, 2024
2 parents 16b0fca + 66f616c commit 8629378
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kubernetes/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ func (w *watcher) enqueue(obj interface{}, state string) {
// cacheObject updates watcher with the old version of cache objects before change during update events
func (w *watcher) cacheObject(o interface{}) {
if old, ok := o.(runtime.Object); !ok {
w.logger.Debugf("Old Object was not retrieved from cache: %v", o)
w.oldobject = nil
utilruntime.HandleError(fmt.Errorf("expected object in cache got %#v", o))
} else {
w.oldobject = old
}
Expand Down

0 comments on commit 8629378

Please sign in to comment.