Apply go fix -stringsseq ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:27:07 +02:00
parent 31e96f4ec9
commit 58f92708c2
10 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -755,7 +755,7 @@ func TestBackupExcludeWithOutput(t *testing.T) {
rtest.OK(t, err)
foundExclude := false
for _, line := range bytes.Split(output, []byte("\n")) {
for line := range bytes.SplitSeq(output, []byte("\n")) {
if len(line) == 0 {
continue
}
+1 -1
View File
@@ -43,7 +43,7 @@ func testLsOutputContainsCount(t testing.TB, gopts global.Options, lsOpts LsOpti
t.Helper()
out := testRunLsWithOpts(t, gopts, lsOpts, lsArgs)
count := 0
for _, line := range strings.Split(string(out), "\n") {
for line := range strings.SplitSeq(string(out), "\n") {
if strings.Contains(line, substring) {
count++
}