commit | a33da23a2460442ab0321f41ff2020ae367211ed | [log] [tgz] |
---|---|---|
author | Jon Perritt <jon.perritt@rackspace.com> | Wed Mar 02 04:43:08 2016 -0600 |
committer | Jon Perritt <jon.perritt@rackspace.com> | Wed Mar 02 04:43:08 2016 -0600 |
tree | dd625420434d9fe852d3934b270721f058b504e7 | |
parent | 4024a028f70f4205eaeec131018a1860cc5a559c [diff] [blame] |
more error types; RequestOptsBuilder error fixes
diff --git a/results.go b/results.go index 1a3aaa4..2b7e01f 100644 --- a/results.go +++ b/results.go
@@ -48,8 +48,7 @@ if readCloser, ok := reader.(io.Closer); ok { defer readCloser.Close() } - jsonDecoder := json.NewDecoder(reader) - return jsonDecoder.Decode(to) + return json.NewDecoder(reader).Decode(to) } b, err := json.Marshal(r.Body)