[#28] Update neofs-api-go to build images

These hotfixes will be altered with later neofs-api-go
updates.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-09-16 11:42:45 +03:00
parent 3ed02d5f64
commit 778dd54244
3 changed files with 9 additions and 2 deletions

View file

@ -17,7 +17,12 @@ type Object struct {
// MarshalStableV2 marshals Object to v2 binary format.
func (o *Object) MarshalStableV2() ([]byte, error) {
if o != nil {
return o.ToV2().StableMarshal(nil)
v2, err := o.ToV2(nil) // fixme: remove
if err != nil {
return nil, err
}
return v2.StableMarshal(nil)
}
return nil, nil