Merge pull request #86040 from haosdent/fix-staticcheck-annotate

fix static check in kubectl/pkg/cmd/annotate.
This commit is contained in:
Kubernetes Prow Robot 2019-12-17 06:18:27 -08:00 committed by GitHub
commit 623b697886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -143,7 +143,6 @@ vendor/k8s.io/client-go/restmapper
vendor/k8s.io/client-go/tools/leaderelection
vendor/k8s.io/client-go/transport
vendor/k8s.io/component-base/metrics
vendor/k8s.io/kubectl/pkg/cmd/annotate
vendor/k8s.io/kubectl/pkg/cmd/certificates
vendor/k8s.io/kubectl/pkg/cmd/config
vendor/k8s.io/kubectl/pkg/cmd/edit

View File

@ -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 {