Skip to content

Commit

Permalink
BenchmarkRouteListFilteredNew, BenchmarkRouteListIter: fix unhandled …
Browse files Browse the repository at this point in the history
…error

    route_test.go:1023:8: ineffectual assignment to err (ineffassign)
        link, err := setUpRoutesBench(b)
              ^
    route_test.go:1046:8: ineffectual assignment to err (ineffassign)
        link, err := setUpRoutesBench(b)
              ^

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Feb 12, 2025
1 parent b746382 commit bbcf2d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,9 @@ func BenchmarkRouteListFilteredNew(b *testing.B) {
defer tearDown()

link, err := setUpRoutesBench(b)
if err != nil {
b.Fatal(err)
}

b.ResetTimer()
b.ReportAllocs()
Expand All @@ -1043,6 +1046,9 @@ func BenchmarkRouteListIter(b *testing.B) {
defer tearDown()

link, err := setUpRoutesBench(b)
if err != nil {
b.Fatal(err)
}

b.ResetTimer()
b.ReportAllocs()
Expand Down

0 comments on commit bbcf2d6

Please sign in to comment.