Skip to content

Commit 623b697

Browse files
authored
Merge pull request kubernetes#86040 from haosdent/fix-staticcheck-annotate
fix static check in kubectl/pkg/cmd/annotate.
2 parents fb0956c + 303c1a4 commit 623b697

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
@@ -143,7 +143,6 @@ vendor/k8s.io/client-go/restmapper
143143
vendor/k8s.io/client-go/tools/leaderelection
144144
vendor/k8s.io/client-go/transport
145145
vendor/k8s.io/component-base/metrics
146-
vendor/k8s.io/kubectl/pkg/cmd/annotate
147146
vendor/k8s.io/kubectl/pkg/cmd/certificates
148147
vendor/k8s.io/kubectl/pkg/cmd/config
149148
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)