Skip to content

Commit 152872d

Browse files
committed
Explicitly ignore error instead of nolint:errcheck
Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent 1ef763b commit 152872d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/server/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ func NewConfig(ctx context.Context, opts kcpserveroptions.CompletedOptions) (*Co
575575
// make sure the informer gets started, otherwise conversions will not work!
576576
_ = c.KcpSharedInformerFactory.Apis().V1alpha1().APIConversions().Informer()
577577

578-
c.ApiExtensionsSharedInformerFactory.Apiextensions().V1().CustomResourceDefinitions().Informer().GetIndexer().AddIndexers(cache.Indexers{byGroupResourceName: indexCRDByGroupResourceName}) //nolint:errcheck
579-
c.KcpSharedInformerFactory.Apis().V1alpha2().APIBindings().Informer().GetIndexer().AddIndexers(cache.Indexers{byIdentityGroupResource: indexAPIBindingByIdentityGroupResource}) //nolint:errcheck
578+
_ = c.ApiExtensionsSharedInformerFactory.Apiextensions().V1().CustomResourceDefinitions().Informer().GetIndexer().AddIndexers(cache.Indexers{byGroupResourceName: indexCRDByGroupResourceName})
579+
_ = c.KcpSharedInformerFactory.Apis().V1alpha2().APIBindings().Informer().GetIndexer().AddIndexers(cache.Indexers{byIdentityGroupResource: indexAPIBindingByIdentityGroupResource})
580580

581581
c.ApiExtensions.ExtraConfig.ClusterAwareCRDLister = &apiBindingAwareCRDClusterLister{
582582
kcpClusterClient: c.KcpClusterClient,

0 commit comments

Comments
 (0)