File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ func TestFileServerUse(t *testing.T) {
35
35
}
36
36
37
37
testMiddleware2 := func (next http.Handler ) http.Handler {
38
- fn := func (w http.ResponseWriter , r * http.Request ) {
38
+ fn := func (w http.ResponseWriter , _ * http.Request ) {
39
39
_ , _ = w .Write ([]byte ("end\n " ))
40
40
}
41
41
return http .HandlerFunc (fn )
42
42
}
43
43
44
44
fs := & FileServer {
45
- handler : http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
45
+ handler : http .HandlerFunc (func (_ http.ResponseWriter , _ * http.Request ) {
46
46
t .Fail ()
47
47
}),
48
48
}
@@ -63,7 +63,7 @@ func TestFileServerServeHTTP(t *testing.T) {
63
63
res := httptest .NewRecorder ()
64
64
65
65
fs := & FileServer {
66
- handler : http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
66
+ handler : http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
67
67
_ , _ = w .Write ([]byte ("expected" ))
68
68
}),
69
69
}
You can’t perform that action at this time.
0 commit comments