Skip to content

Commit 9adc924

Browse files
authored
Merge pull request #82 from deploymenttheory/dev
Refactor DoMultipartRequest method signature
2 parents 931c4fe + 6632fe8 commit 9adc924

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

httpclient/httpclient_request.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ func (c *Client) handleSuccessResponse(resp *http.Response, out interface{}, log
441441
//
442442
// Note:
443443
// The caller should handle closing the response body when successful.
444-
func (c *Client) DoMultipartRequest(method, endpoint string, fields map[string]string, files map[string]string, out interface{}, log logger.Logger) (*http.Response, error) {
444+
func (c *Client) DoMultipartRequest(method, endpoint string, fields map[string]string, files map[string]string, out interface{}) (*http.Response, error) {
445+
log := c.Logger
445446
// Auth Token validation check
446447
valid, err := c.ValidAuthTokenCheck(log)
447448
if err != nil || !valid {

0 commit comments

Comments
 (0)