From a1eb8b3f21a09fa9eeb2cf16097eb373b0bf7269 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Mon, 11 Nov 2024 12:06:34 +0100 Subject: [PATCH] Bump golangci-lint to v1.62.0 https://golangci-lint.run/product/changelog/#1620 Signed-off-by: Tom Wieczorek --- hack/tools/Makefile.variables | 2 +- pkg/applier/manager.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/tools/Makefile.variables b/hack/tools/Makefile.variables index 509b2408d3be..50abf6ec4944 100644 --- a/hack/tools/Makefile.variables +++ b/hack/tools/Makefile.variables @@ -1,2 +1,2 @@ controller-gen_version = 0.16.1 -golangci-lint_version = 1.60.3 +golangci-lint_version = 1.62.0 diff --git a/pkg/applier/manager.go b/pkg/applier/manager.go index bc19b6fcd9b0..9258b6541635 100644 --- a/pkg/applier/manager.go +++ b/pkg/applier/manager.go @@ -132,6 +132,7 @@ func (m *Manager) runWatchers(ctx context.Context) { } ctx, cancel := context.WithCancelCause(ctx) + defer cancel(nil) // satisfy linter, not required for correctness stacks := make(map[string]stack, len(dirs)) for _, dir := range dirs {