From f8097bdbb987ac89155146b68ecd80d7e56cc0ca Mon Sep 17 00:00:00 2001 From: Renaud Hartert Date: Sun, 23 Jun 2024 19:04:15 +0200 Subject: [PATCH] Undo changes to client.go --- client/client.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/client/client.go b/client/client.go index 1794fe359..671ccf09a 100644 --- a/client/client.go +++ b/client/client.go @@ -47,15 +47,9 @@ func (c *DatabricksClient) ConfiguredAccountID() string { } // Do sends an HTTP request against path. -func (c *DatabricksClient) Do( - ctx context.Context, - method string, - path string, - headers map[string]string, - request any, - response any, - visitors ...func(*http.Request) error, -) error { +func (c *DatabricksClient) Do(ctx context.Context, method, path string, + headers map[string]string, request, response any, + visitors ...func(*http.Request) error) error { opts := []httpclient.DoOption{} for _, v := range visitors { opts = append(opts, httpclient.WithRequestVisitor(v))