summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/nlopes/slack/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/nlopes/slack/auth.go')
-rw-r--r--vendor/github.com/nlopes/slack/auth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/nlopes/slack/auth.go b/vendor/github.com/nlopes/slack/auth.go
index f8fe1f9d..dc1dbcdf 100644
--- a/vendor/github.com/nlopes/slack/auth.go
+++ b/vendor/github.com/nlopes/slack/auth.go
@@ -12,9 +12,9 @@ type AuthRevokeResponse struct {
}
// authRequest sends the actual request, and unmarshals the response
-func authRequest(ctx context.Context, client httpClient, path string, values url.Values, d debug) (*AuthRevokeResponse, error) {
+func (api *Client) authRequest(ctx context.Context, path string, values url.Values) (*AuthRevokeResponse, error) {
response := &AuthRevokeResponse{}
- err := postSlackMethod(ctx, client, path, values, response, d)
+ err := api.postMethod(ctx, path, values, response)
if err != nil {
return nil, err
}
@@ -36,5 +36,5 @@ func (api *Client) SendAuthRevokeContext(ctx context.Context, token string) (*Au
"token": {token},
}
- return authRequest(ctx, api.httpclient, "auth.revoke", values, api)
+ return api.authRequest(ctx, "auth.revoke", values)
}