mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Apply remaining modernize changes. (#56037)
This is the last of this series of updates.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user