forked from TrueCloudLab/frostfs-sdk-go
[#105] client: Fix revive linter warning
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
5d62cef27e
commit
769f6eec05
1 changed files with 7 additions and 6 deletions
|
@ -44,15 +44,16 @@ func (x *objectWriterTransformer) WritePayloadChunk(ctx context.Context, chunk [
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *objectWriterTransformer) Close(ctx context.Context) (*ResObjectPut, error) {
|
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
|
return nil, err
|
||||||
} else {
|
}
|
||||||
|
|
||||||
if ai != nil && ai.ParentID != nil {
|
if ai != nil && ai.ParentID != nil {
|
||||||
x.it.res.obj = *ai.ParentID
|
x.it.res.obj = *ai.ParentID
|
||||||
}
|
}
|
||||||
return x.it.res, nil
|
return x.it.res, nil
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
type internalTarget struct {
|
type internalTarget struct {
|
||||||
current *object.Object
|
current *object.Object
|
||||||
|
|
Loading…
Reference in a new issue