Skip to content

Commit

Permalink
Don't assign a variable for unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Sep 21, 2023
1 parent 8526625 commit 9efbf04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func BenchmarkNewRouterRegexpFunc(b *testing.B) {
}
}

func testNewRouter(tb testing.TB, handler http.Handler) {
func testNewRouter(_ testing.TB, handler http.Handler) {
r := NewRouter()
// A route with a route variable:
r.Handle("/metrics/{type}", handler)
Expand Down

0 comments on commit 9efbf04

Please sign in to comment.