From 898c419d5c5016589ff17f178b99111d28460bca Mon Sep 17 00:00:00 2001 From: Kairo Araujo Date: Mon, 19 Aug 2024 22:03:49 +0200 Subject: [PATCH] fix: golangci-lint warning (v1.60.x) Error: pkg/server/server.go:468:18: printf: non-constant format string in call to github.com/sirupsen/logrus.Errorf (govet) logrus.Errorf(fmt.Sprintf("failed to close artifact distribution file %s: %+v", distro.FileLocation, err)) Signed-off-by: Kairo Araujo --- pkg/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/server.go b/pkg/server/server.go index c250bfbc..ee117856 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -465,7 +465,7 @@ func (s *Server) DownloadArtifactHandler(w http.ResponseWriter, r *http.Request) defer func() { if err := file.Close(); err != nil { - logrus.Errorf(fmt.Sprintf("failed to close artifact distribution file %s: %+v", distro.FileLocation, err)) + logrus.Errorf("failed to close artifact distribution file %s: %+v", distro.FileLocation, err) } }()