mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
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:
1 parent
61ef913d4c
commit
85460ae14e
1 file changed
+1
-1
@@ -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), ":")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user