From 08def252f742d9f5f3ea3caa6173a9ca1ba7cc90 Mon Sep 17 00:00:00 2001 From: Haosdent Huang Date: Sun, 8 Dec 2019 23:25:50 +0800 Subject: [PATCH] fix static check in kubectl/pkg/cmd/annotate. Kubernetes-commit: 303c1a40bcee81fe14845d2af9dae2073f86ec52 --- pkg/cmd/annotate/annotate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/annotate/annotate.go b/pkg/cmd/annotate/annotate.go index 35da6cfa9..3db68106b 100644 --- a/pkg/cmd/annotate/annotate.go +++ b/pkg/cmd/annotate/annotate.go @@ -328,7 +328,7 @@ func validateAnnotations(removeAnnotations []string, newAnnotations map[string]s if modifyRemoveBuf.Len() > 0 { modifyRemoveBuf.WriteString(", ") } - modifyRemoveBuf.WriteString(fmt.Sprintf(removeAnnotation)) + modifyRemoveBuf.WriteString(fmt.Sprint(removeAnnotation)) } } if modifyRemoveBuf.Len() > 0 {