Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
labuladong committed Jun 26, 2024
1 parent bfe57d5 commit d3cf71c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulsaradmin/pkg/rest/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ func (c *Client) newRequest(method, path string) (*request, error) {
return req, nil
}

func (c *Client) newRequestWithURL(method string, urlOpt *url.URL) (*request, error) {
func (c *Client) newRequestWithURL(method string, urlOpt *url.URL) *request {
req := &request{
method: method,
url: urlOpt,
params: make(url.Values),
}
return req, nil
return req
}

func (c *Client) doRequest(r *request) (*http.Response, error) {
Expand Down

0 comments on commit d3cf71c

Please sign in to comment.