diff --git a/.golangci.yaml b/.golangci.yaml index 603c01d4b..ce0bddb3a 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -8,6 +8,8 @@ issues: max-issues-per-linter: 0 max-same-issues: 0 new: false + exclude: + - "parameter 'clusterConfigData' seems to be unused, consider removing or renaming it as _" output: print-linter-name: true diff --git a/controllers/acc_controller.go b/controllers/acc_controller.go index e3eba580b..fd0e64f08 100644 --- a/controllers/acc_controller.go +++ b/controllers/acc_controller.go @@ -369,7 +369,6 @@ func (r *ApexConnectivityClientReconciler) ClientContentWatch() error { _, err = podsInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{ UpdateFunc: r.handlePodsUpdate, }) - if err != nil { return fmt.Errorf("ClientContentWatch failed adding event handler to podsInformer: %v", err) }