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 some lint errors. #36713

Merged
merged 1 commit into from
Nov 14, 2016
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions cmd/genyaml/gen_kubectl_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func forceMultiLine(s string) string {
}

func genFlagResult(flags *pflag.FlagSet) []cmdOption {
result := make([]cmdOption, 0)
result := []cmdOption{}

flags.VisitAll(func(flag *pflag.Flag) {
// Todo, when we mark a shorthand is deprecated, but specify an empty message.
Expand Down Expand Up @@ -131,7 +131,7 @@ func genYaml(command *cobra.Command, parent, docsDir string) {
}

if len(command.Commands()) > 0 || len(parent) > 0 {
result := make([]string, 0)
result := []string{}
if len(parent) > 0 {
result = append(result, parent)
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/pkg/auth/authenticator/request/x509/x509_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ func getCert(t *testing.T, pemData string) *x509.Certificate {
}

func getCerts(t *testing.T, pemData ...string) []*x509.Certificate {
certs := make([]*x509.Certificate, 0)
certs := []*x509.Certificate{}
for _, pemData := range pemData {
certs = append(certs, getCert(t, pemData))
}
Expand Down