Browse Source

Clean up named return value

pull/155/head
Richard Lewis 8 years ago
parent
commit
c46ad2e09b
  1. 2
      src/github.com/matrix-org/go-neb/services/google/google.go

2
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"

Loading…
Cancel
Save