Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutzen committed Nov 1, 2023
1 parent 8c1c414 commit a3a8066
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions go/pkg/ast/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,8 @@ func sortByIP(l []*Attribute) {
list := a.ValueList
if len(list) >= 1 {
v := list[0].Value
switch a.Name {
case "ip":
case "range":
if a.Name == "range" {
v, _, _ = strings.Cut(v, "-")
default:
continue
}
v = strings.TrimSpace(v)
ip, _ := netip.ParseAddr(v)
Expand Down

0 comments on commit a3a8066

Please sign in to comment.