portlist: simplify slice expression.

Signed-off-by: David Anderson <dave@natulte.net>
pull/24/head
David Anderson 4 years ago
parent be6bcd59cd
commit 520e96afd1

@ -28,7 +28,7 @@ func parsePort(s string) int {
return -1 return -1
} }
portstr := s[i+1 : len(s)] portstr := s[i+1:]
if portstr == "*" { if portstr == "*" {
return 0 return 0
} }

Loading…
Cancel
Save