fix(go-models): remove duplicate roundTripperFunc from novita_test.go (#15492)

Remove duplicated function
This commit is contained in:
dripsmvcp
2026-06-01 22:23:39 -07:00
committed by GitHub
parent e4ef9834da
commit d4f1c2c95c

View File

@@ -9,12 +9,6 @@ import (
"testing"
)
type roundTripperFunc func(*http.Request) (*http.Response, error)
func (f roundTripperFunc) RoundTrip(r *http.Request) (*http.Response, error) {
return f(r)
}
func newNovitaServer(t *testing.T, expectedPath string, handler func(t *testing.T, body map[string]interface{}, w http.ResponseWriter)) *httptest.Server {
t.Helper()
return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {