mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
chore: enable gocritic linter (#18633)
* chore: enable gocritic linter Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update settings.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update app.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update grpcproxy.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update grpcproxy.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update util.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update server.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update app_management_ns_test.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update app_management_test.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update path_traversal.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update sessionmanager.go Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> * Update .golangci.yaml Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> --------- Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -166,9 +166,7 @@ func newInformer(resClient dynamic.ResourceInterface, controllerNamespace string
|
||||
&unstructured.Unstructured{},
|
||||
resyncPeriod,
|
||||
cache.Indexers{
|
||||
cache.NamespaceIndex: func(obj interface{}) ([]string, error) {
|
||||
return cache.MetaNamespaceIndexFunc(obj)
|
||||
},
|
||||
cache.NamespaceIndex: cache.MetaNamespaceIndexFunc,
|
||||
},
|
||||
)
|
||||
return informer
|
||||
|
||||
Reference in New Issue
Block a user