forked from TrueCloudLab/frostfs-node
[#234] Fix ineffassign linter remark
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
73e99fa590
commit
f311be3ab6
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ type streamer struct {
|
||||||
func (s *streamer) Send(req *object.PutRequest) (err error) {
|
func (s *streamer) Send(req *object.PutRequest) (err error) {
|
||||||
switch v := req.GetBody().GetObjectPart().(type) {
|
switch v := req.GetBody().GetObjectPart().(type) {
|
||||||
case *object.PutObjectPartInit:
|
case *object.PutObjectPartInit:
|
||||||
initPrm, err := toInitPrm(v, req)
|
var initPrm *putsvc.PutInitPrm
|
||||||
|
|
||||||
|
initPrm, err = toInitPrm(v, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue