From e538a4d30459e9da1a021400b5de85894b4efabc Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 2 Dec 2018 02:55:35 +0800 Subject: Update nlopes/slack to 4.1-dev (#595) --- vendor/github.com/nlopes/slack/search.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'vendor/github.com/nlopes/slack/search.go') diff --git a/vendor/github.com/nlopes/slack/search.go b/vendor/github.com/nlopes/slack/search.go index e858952f..2d018fcc 100644 --- a/vendor/github.com/nlopes/slack/search.go +++ b/vendor/github.com/nlopes/slack/search.go @@ -2,7 +2,6 @@ package slack import ( "context" - "errors" "net/url" "strconv" ) @@ -104,14 +103,12 @@ func (api *Client) _search(ctx context.Context, path, query string, params Searc } response = &searchResponseFull{} - err := postSlackMethod(ctx, api.httpclient, path, values, response, api.debug) + err := postSlackMethod(ctx, api.httpclient, path, values, response, api) if err != nil { return nil, err } - if !response.Ok { - return nil, errors.New(response.Error) - } - return response, nil + + return response, response.Err() } -- cgit v1.2.3