Skip to content

Commit

Permalink
fix linter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Jan 25, 2024
1 parent abdebcf commit fc23f66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/server/largest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,13 @@ func BenchmarkLargest(b *testing.B) {

g := &errgroup.Group{}
for i := range scores {
score := scores[i]
g.Go(func() error {
xs.add(&item{
value: SDN{
name: fmt.Sprintf("%.2f", scores[i]),
name: fmt.Sprintf("%.2f", score),
},
weight: scores[i],
weight: score,
})
return nil
})
Expand Down

0 comments on commit fc23f66

Please sign in to comment.