Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix golint verify error #45219

Merged
merged 1 commit into from
May 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/integration/apiserver/apiserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func newRS(namespace string) *v1beta1.ReplicaSet {
}
}

var cascDel string = `
var cascDel = `
Copy link
Contributor

@fejta fejta May 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you prefer this?

cascDel := `foo`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this way, but I found that golang doesn't support it.
Short variable declarations may appear only inside functions.
Reference:
https://golang.org/ref/spec#Short_variable_declarations
Thanks

{
"kind": "DeleteOptions",
"apiVersion": "` + api.Registry.GroupOrDie(api.GroupName).GroupVersion.String() + `",
Expand Down