Apply remaining modernize changes. (#56037)

This is the last of this series of updates.
This commit is contained in:
Zac Bergquist
2025-06-25 21:25:29 +00:00
committed by GitHub
parent 95f596ef55
commit a12def583a
110 changed files with 236 additions and 334 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ func parseReleaseNoteLabels(notes string) map[string]string {
continue
}
l = strings.TrimPrefix(l, labelPrefix)
for _, kv := range strings.Split(l, ",") {
for kv := range strings.SplitSeq(l, ",") {
if !strings.Contains(kv, "=") {
logger.DebugContext(context.Background(), "Skipping invalid release label keypair", "label", kv)
continue