remove redundent return statements

This commit is contained in:
Darren O'Connor 2022-11-16 01:43:29 +00:00 committed by mattn
parent f76d33a68c
commit 9e1af56ceb
7 changed files with 0 additions and 59 deletions

View file

@ -27,7 +27,6 @@ func TestRegisterApp(t *testing.T) {
return
}
fmt.Fprintln(w, `{"id": 123, "client_id": "foo", "client_secret": "bar"}`)
return
}))
defer ts.Close()
@ -79,7 +78,6 @@ func TestRegisterAppWithCancel(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
time.Sleep(3 * time.Second)
fmt.Fprintln(w, `{"client_id": "foo", "client_secret": "bar"}`)
return
}))
defer ts.Close()