Skip to content

Commit

Permalink
go1.14: fix gofmt errors
Browse files Browse the repository at this point in the history
Kubernetes-commit: 14845f0c2d66697be0ae8bce4e1de9d9aad6c796
  • Loading branch information
liggitt authored and k8s-publishing-bot committed Jun 23, 2020
1 parent 92e2f57 commit 9617b3a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/informer-gen/generators/generic.go
Expand Up @@ -73,9 +73,11 @@ type group struct {

type groupSort []group

func (g groupSort) Len() int { return len(g) }
func (g groupSort) Less(i, j int) bool { return strings.ToLower(g[i].Name) < strings.ToLower(g[j].Name) }
func (g groupSort) Swap(i, j int) { g[i], g[j] = g[j], g[i] }
func (g groupSort) Len() int { return len(g) }
func (g groupSort) Less(i, j int) bool {
return strings.ToLower(g[i].Name) < strings.ToLower(g[j].Name)
}
func (g groupSort) Swap(i, j int) { g[i], g[j] = g[j], g[i] }

type version struct {
Name string
Expand Down

0 comments on commit 9617b3a

Please sign in to comment.