mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-14 21:39:26 +00:00
runtime: fix dropped error
Fixes: #212 Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user