chore(modernize): use iterator

This commit is contained in:
2025-08-03 14:13:57 +02:00
parent 0b3f7b2b5c
commit 6aaeda7a3c

View File

@@ -84,7 +84,7 @@ func (s *Service) Yaml() ([]byte, error) {
}
lines := []string{}
for _, line := range strings.Split(string(y), "\n") {
for line := range strings.SplitSeq(string(y), "\n") {
if regexp.MustCompile(`^\s*loadBalancer:\s*`).MatchString(line) {
continue
}