[#105] client: Fix revive linter warning
All checks were successful
/ DCO (pull_request) Successful in 1m11s
/ Lint (pull_request) Successful in 2m15s
/ Tests (1.19) (pull_request) Successful in 2m7s
/ Tests (1.20) (pull_request) Successful in 1m29s

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-07-05 15:50:33 +03:00
parent 5d62cef27e
commit 769f6eec05

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 {