portlist: simplify slice expression.
Signed-off-by: David Anderson <dave@natulte.net>pull/24/head
parent
be6bcd59cd
commit
520e96afd1
|
@ -28,7 +28,7 @@ func parsePort(s string) int {
|
|||
return -1
|
||||
}
|
||||
|
||||
portstr := s[i+1 : len(s)]
|
||||
portstr := s[i+1:]
|
||||
if portstr == "*" {
|
||||
return 0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue