client: fix revive linter warning #105

Merged
fyrchik merged 1 commit from fyrchik/frostfs-sdk-go:fix-linter into master 2023-07-05 14:22:09 +00:00
Showing only changes of commit 769f6eec05 - Show all commits

View file

@ -44,14 +44,15 @@ func (x *objectWriterTransformer) WritePayloadChunk(ctx context.Context, chunk [
}
func (x *objectWriterTransformer) Close(ctx context.Context) (*ResObjectPut, error) {
if ai, err := x.ot.Close(ctx); err != nil {
ai, err := x.ot.Close(ctx)
if err != nil {
return nil, err
} else {
if ai != nil && ai.ParentID != nil {
x.it.res.obj = *ai.ParentID
}
return x.it.res, nil
}
if ai != nil && ai.ParentID != nil {
x.it.res.obj = *ai.ParentID
}
return x.it.res, nil
}
type internalTarget struct {