From c46ad2e09bb86f82baa97aff01cb8788f9e117e3 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 10 Feb 2017 16:48:12 +0000 Subject: [PATCH] Clean up named return value --- src/github.com/matrix-org/go-neb/services/google/google.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/go-neb/services/google/google.go b/src/github.com/matrix-org/go-neb/services/google/google.go index 7594ed7..8044a62 100644 --- a/src/github.com/matrix-org/go-neb/services/google/google.go +++ b/src/github.com/matrix-org/go-neb/services/google/google.go @@ -176,7 +176,7 @@ func (s *Service) text2imgGoogle(query string) (*googleSearchResult, error) { } // response2String returns a string representation of an HTTP response body -func response2String(res *http.Response) (responseText string) { +func response2String(res *http.Response) string { bs, err := ioutil.ReadAll(res.Body) if err != nil { return "Failed to decode response body"