modernize: run gopls modernize to bring up to 1.25 (#2920)
This commit is contained in:
parent
bfcd9d261d
commit
eec196d200
18 changed files with 78 additions and 116 deletions
|
|
@ -39,9 +39,10 @@ func parsePortRange(portDef string) ([]tailcfg.PortRange, error) {
|
|||
}
|
||||
|
||||
var portRanges []tailcfg.PortRange
|
||||
parts := strings.Split(portDef, ",")
|
||||
|
||||
for _, part := range parts {
|
||||
parts := strings.SplitSeq(portDef, ",")
|
||||
|
||||
for part := range parts {
|
||||
if strings.Contains(part, "-") {
|
||||
rangeParts := strings.Split(part, "-")
|
||||
rangeParts = slices.DeleteFunc(rangeParts, func(e string) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue