[#234] Fix ineffassign linter remark

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-14 10:51:05 +03:00 committed by Alex Vanin
parent 73e99fa590
commit f311be3ab6

View file

@ -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
}