Skip to content

Commit 1227677

Browse files
committed
refactor: replace Split in loops with more efficient SplitSeq
Signed-off-by: findnature <[email protected]>
1 parent 678fbc8 commit 1227677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v2/pkg/testutils/integration.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ func RunSubfinderAndGetResults(debug bool, domain string, extra ...string) ([]st
2727
return nil, err
2828
}
2929
var parts []string
30-
items := strings.Split(string(data), "\n")
31-
for _, i := range items {
30+
items := strings.SplitSeq(string(data), "\n")
31+
for i := range items {
3232
if i != "" {
3333
parts = append(parts, i)
3434
}

0 commit comments

Comments
 (0)