From 4a0ed49c13c13c908a2f90320612e790a5e73410 Mon Sep 17 00:00:00 2001 From: Jasmin Oster Date: Mon, 8 Jul 2024 17:15:00 +0200 Subject: [PATCH] chore: update linter configuration to newest version --- .golangci.yaml | 5 +++-- cmd/main.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 760c60bec3..6ce719aac4 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,13 +1,14 @@ linters: enable-all: true disable: - - exhaustivestruct - depguard + - execinquery # deprecated since v1.58.0 - funlen - gci - - goconst - gochecknoglobals + - goconst - gofumpt - gomnd - lll + - mnd # some magic numbers are acceptable. - nlreturn diff --git a/cmd/main.go b/cmd/main.go index cded6be079..c64ae407b5 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -159,6 +159,7 @@ func copyStaticFiles(staticPath string, destinationPath string) error { if err != nil { return fmt.Errorf("error creating directory %q: %w", destinationPath, err) } + return nil }