From 769f6eec0565e4dc3c6b966ed730217739f44ef3 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 5 Jul 2023 15:50:33 +0300 Subject: [PATCH] [#105] client: Fix revive linter warning Signed-off-by: Evgenii Stratonikov --- client/object_put_transformer.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/client/object_put_transformer.go b/client/object_put_transformer.go index 636e56b..b010deb 100644 --- a/client/object_put_transformer.go +++ b/client/object_put_transformer.go @@ -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 {