Skip to content

Commit

Permalink
Remove special check in sort server by name
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Mar 7, 2017
1 parent bebd596 commit 9ed7bc6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/pkg/ingress/sort_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ type ServerByName []*Server
func (c ServerByName) Len() int { return len(c) }
func (c ServerByName) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
func (c ServerByName) Less(i, j int) bool {
// special case for catch all server
if c[j].Hostname == "_" {
return false
}
return c[i].Hostname < c[j].Hostname
}

Expand Down

0 comments on commit 9ed7bc6

Please sign in to comment.