Skip to content

Commit 303c1a4

Browse files
committed
fix static check in kubectl/pkg/cmd/annotate.
1 parent 616fce7 commit 303c1a4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ vendor/k8s.io/client-go/restmapper
155155
vendor/k8s.io/client-go/tools/leaderelection
156156
vendor/k8s.io/client-go/transport
157157
vendor/k8s.io/component-base/metrics
158-
vendor/k8s.io/kubectl/pkg/cmd/annotate
159158
vendor/k8s.io/kubectl/pkg/cmd/certificates
160159
vendor/k8s.io/kubectl/pkg/cmd/config
161160
vendor/k8s.io/kubectl/pkg/cmd/edit

staging/src/k8s.io/kubectl/pkg/cmd/annotate/annotate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func validateAnnotations(removeAnnotations []string, newAnnotations map[string]s
328328
if modifyRemoveBuf.Len() > 0 {
329329
modifyRemoveBuf.WriteString(", ")
330330
}
331-
modifyRemoveBuf.WriteString(fmt.Sprintf(removeAnnotation))
331+
modifyRemoveBuf.WriteString(fmt.Sprint(removeAnnotation))
332332
}
333333
}
334334
if modifyRemoveBuf.Len() > 0 {

0 commit comments

Comments
 (0)