From f311be3ab64107f73cd7162c64ea5bcc33cefd88 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 14 Jan 2021 10:51:05 +0300 Subject: [PATCH] [#234] Fix ineffassign linter remark Signed-off-by: Leonard Lyubich --- pkg/services/object/put/v2/streamer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/services/object/put/v2/streamer.go b/pkg/services/object/put/v2/streamer.go index 5d980fce5..5eceb5f15 100644 --- a/pkg/services/object/put/v2/streamer.go +++ b/pkg/services/object/put/v2/streamer.go @@ -13,7 +13,9 @@ type streamer struct { func (s *streamer) Send(req *object.PutRequest) (err error) { switch v := req.GetBody().GetObjectPart().(type) { case *object.PutObjectPartInit: - initPrm, err := toInitPrm(v, req) + var initPrm *putsvc.PutInitPrm + + initPrm, err = toInitPrm(v, req) if err != nil { return err }