mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #45219 from CaoShuFeng/golint
Automatic merge from submit-queue Fix golint verify error I don't know why CI pass the hack/verify-golint.sh test. But in my environment I get this: > staging/src/k8s.io/client-go/util/workqueue/queue_test.go is in package workqueue_test, not workqueue Errors from golint: test/integration/apiserver/apiserver_test.go:102:13: should omit type string from declaration of var cascDel; it will be inferred from the right-hand side Please fix the above errors. You can test via "golint" and commit the result. !!! Error in hack/verify-golint.sh:98 Error in hack/verify-golint.sh:98. 'false' exited with status 1 Call stack: 1: hack/verify-golint.sh:98 main(...) Exiting with status 1 This change fix this err in my environment. **Release note**: ```NONE ```
This commit is contained in:
commit
19423e62af
@ -99,7 +99,7 @@ func newRS(namespace string) *v1beta1.ReplicaSet {
|
||||
}
|
||||
}
|
||||
|
||||
var cascDel string = `
|
||||
var cascDel = `
|
||||
{
|
||||
"kind": "DeleteOptions",
|
||||
"apiVersion": "` + api.Registry.GroupOrDie(api.GroupName).GroupVersion.String() + `",
|
||||
|
Loading…
Reference in New Issue
Block a user