[Go-client] Fix the ineffectual assignment to `err` in `decode`
Fixes:
@@ -421,6 +421,9 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err
return
}
_, err = (*f).Write(b)
+ if err != nil {
+ return
+ }
_, err = (*f).Seek(0, io.SeekStart)
return
}
