runtime: fix dropped error

Fixes: #212

Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
This commit is contained in:
Lars Lehtonen 2021-04-24 14:10:57 -07:00
parent 8587e3a00b
commit fc6bb01a7f
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -372,6 +372,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
}