chore(desktop): range over strings.SplitSeq in the packaged-names test

The modernize stringsseq check flagged strings.Split in a range loop; the loop
reads the same lines.
This commit is contained in:
yhh committed 2026-10-11 06:38:30 -07:00
1 parent 61ef913d4c
commit 85460ae14e
1 file changed
+1 -1
+1 -1
View File
@@ -627,7 +627,7 @@ func TestPackagedNamesMatchTheHelper(t *testing.T) {
}
names := map[string]string{}
section := ""
for _, line := range strings.Split(string(raw), "\n") {
for line := range strings.SplitSeq(string(raw), "\n") {
if line != "" && !strings.HasPrefix(line, " ") && !strings.HasPrefix(line, "#") && strings.HasSuffix(strings.TrimSpace(line), ":") {
section = strings.TrimSuffix(strings.TrimSpace(line), ":")
}