From f04b2d43509816ecfda93aa5d0d1fd685d9b860f Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sun, 1 Mar 2020 14:55:03 +0800 Subject: lint: fix some Golang CI lint issues (#5955) --- internal/httplib/httplib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/httplib') diff --git a/internal/httplib/httplib.go b/internal/httplib/httplib.go index 55b17d93..729e0e03 100644 --- a/internal/httplib/httplib.go +++ b/internal/httplib/httplib.go @@ -250,7 +250,7 @@ func (r *Request) getResponse() (*http.Response, error) { } if r.req.Method == "GET" && len(paramBody) > 0 { - if strings.Index(r.url, "?") != -1 { + if strings.Contains(r.url, "?") { r.url += "&" + paramBody } else { r.url = r.url + "?" + paramBody -- cgit v1.2.3