mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-30 21:42:48 -08:00
portlist: simplify slice expression.
Signed-off-by: David Anderson <[email protected]>
This commit is contained in:
1 parent
be6bcd59cd
commit
520e96afd1
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user