[#1718] linter: Resolve gocritic's unlambda linter
See https://go-critic.com/overview#unlambda for details. Change-Id: Iccb2d293ce31a302fcbb2c3f9c55c9b3fa554db5 Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
b88fe8c4a7
commit
ca8b01667f
1 changed files with 1 additions and 3 deletions
|
@ -182,9 +182,7 @@ func (s *Service) toHashRangePrm(req *objectV2.GetRangeHashRequest) (*getsvc.Ran
|
||||||
default:
|
default:
|
||||||
return nil, errUnknownChechsumType(t)
|
return nil, errUnknownChechsumType(t)
|
||||||
case refs.SHA256:
|
case refs.SHA256:
|
||||||
p.SetHashGenerator(func() hash.Hash {
|
p.SetHashGenerator(sha256.New)
|
||||||
return sha256.New()
|
|
||||||
})
|
|
||||||
case refs.TillichZemor:
|
case refs.TillichZemor:
|
||||||
p.SetHashGenerator(func() hash.Hash {
|
p.SetHashGenerator(func() hash.Hash {
|
||||||
return tz.New()
|
return tz.New()
|
||||||
|
|
Loading…
Add table
Reference in a new issue