From 23e97c97978214d388728176e96e5b827d2651bb Mon Sep 17 00:00:00 2001 From: devhindo Date: Thu, 12 Dec 2024 20:21:23 +0200 Subject: [PATCH] fixed Errorf wrong usage detected by golangci-lint Signed-off-by: devhindo --- kuma/oam.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kuma/oam.go b/kuma/oam.go index 3baa79aa..8109486e 100644 --- a/kuma/oam.go +++ b/kuma/oam.go @@ -202,7 +202,7 @@ func mergeErrors(errs []error) error { errMsgs = append(errMsgs, err.Error()) } - return fmt.Errorf(strings.Join(errMsgs, "\n")) + return fmt.Errorf("%s", strings.Join(errMsgs, "\n")) } func mergeMsgs(strs []string) string {