[#234] Fix ineffassign linter remark

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-01-14 10:51:05 +03:00 committed by Alex Vanin
parent 73e99fa590
commit f311be3ab6
1 changed files with 3 additions and 1 deletions

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
}