Skip to content

Commit 4d56ab1

Browse files
committed
Remove unwanted conditions from controllers.
Signed-off-by: Humble Chirammal <[email protected]>
1 parent a3c1a6d commit 4d56ab1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/controller/garbagecollector/graph_builder.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,8 @@ func (gb *GraphBuilder) controllerFor(resource schema.GroupVersionResource, kind
180180
// need to clone because it's from a shared cache
181181
shared.Informer().AddEventHandlerWithResyncPeriod(handlers, ResourceResyncTime)
182182
return shared.Informer().GetController(), shared.Informer().GetStore(), nil
183-
} else {
184-
klog.V(4).Infof("unable to use a shared informer for resource %q, kind %q: %v", resource.String(), kind.String(), err)
185183
}
184+
klog.V(4).Infof("unable to use a shared informer for resource %q, kind %q: %v", resource.String(), kind.String(), err)
186185

187186
// TODO: consider store in one storage.
188187
klog.V(5).Infof("create storage for resource %s", resource)

0 commit comments

Comments
 (0)