Skip to content

Commit dcd8c9c

Browse files
authored
all: run go fix on 1.26 (#1141)
1 parent 26490f3 commit dcd8c9c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/zoekt-webserver/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func main() {
233233

234234
if *hostCustomization != "" {
235235
s.HostCustomQueries = map[string]string{}
236-
for _, h := range strings.Split(*hostCustomization, ",") {
236+
for h := range strings.SplitSeq(*hostCustomization, ",") {
237237
if len(h) == 0 {
238238
continue
239239
}

search/branchesrepos_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func BenchmarkSelectRepoSetBranchesReposLargeBitmapsFewShards(b *testing.B) {
382382
q := newBranchesReposQuery(branchesReposBenchmarkBranches)
383383

384384
for branch := range q.List {
385-
for id := uint32(0); id < 100; id++ {
385+
for id := range uint32(100) {
386386
q.List[branch].Repos.Add(100_000 + uint32(branch)*100 + id)
387387
}
388388
}
@@ -398,7 +398,7 @@ func BenchmarkSelectRepoSetBranchesReposLargeBitmapsModerateShards(b *testing.B)
398398
q := newBranchesReposQuery(branchesReposBenchmarkBranches)
399399

400400
for branch := range q.List {
401-
for id := uint32(0); id < 100; id++ {
401+
for id := range uint32(100) {
402402
q.List[branch].Repos.Add(100_000 + uint32(branch)*100 + id)
403403
}
404404
}
@@ -434,7 +434,7 @@ func BenchmarkSelectRepoSetBranchesReposUnlistedShards(b *testing.B) {
434434
}
435435
q := newBranchesReposQuery(branchesReposBenchmarkBranches)
436436
for branch := range q.List {
437-
for id := uint32(0); id < 100; id++ {
437+
for id := range uint32(100) {
438438
q.List[branch].Repos.Add(100_000 + uint32(branch)*100 + id)
439439
}
440440
}

0 commit comments

Comments
 (0)