fix(forge): replace strings.SplitSeq for broader compatibility
This commit is contained in:
parent
6d249abb44
commit
c7a12cbdd3
|
@ -116,7 +116,7 @@ func doRegister(newurl string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
test := strings.TrimSpace(string(body))
|
test := strings.TrimSpace(string(body))
|
||||||
for line := range strings.SplitSeq(test, "\n") {
|
for _, line := range strings.Split(test, "\n") {
|
||||||
line = strings.TrimSpace(line)
|
line = strings.TrimSpace(line)
|
||||||
log.Info("server returned:", line)
|
log.Info("server returned:", line)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue