From 189717a77762a055f99028381853d20b2b97bb05 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 26 Mar 2024 10:36:16 +0100 Subject: [PATCH] Bump golangci-lint + fix lint issues Signed-off-by: Volker Theile (cherry picked from commit 55e87521c9820d6042dd47e72e58be18fd8d371b) Conflicts: Dockerfile.dapper - minor changes, only update the golangci-lint version --- Dockerfile.dapper | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.dapper b/Dockerfile.dapper index 307a603b..cc9c54d7 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -8,7 +8,7 @@ RUN zypper -n rm container-suseconnect && \ ## install golangci RUN if [ "${ARCH}" == "amd64" ]; then \ - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.52.0; \ + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.1; \ fi ## install controller-gen diff --git a/main.go b/main.go index 16ffd074..1e9147a2 100644 --- a/main.go +++ b/main.go @@ -142,7 +142,7 @@ func main() { }, } - app.Action = func(c *cli.Context) error { + app.Action = func(_ *cli.Context) error { initProfiling(&opt) initLogs(&opt) return run(&opt)