Fix golangci-lint warnings
This commit is contained in:
parent
2fdde4024d
commit
ecd1846975
2 changed files with 22 additions and 11 deletions
|
@ -42,7 +42,7 @@ func SignerResponseFromData(lengthBytes []byte, blockData []byte, checkSum byte)
|
|||
|
||||
calculated := CalculateXorCheckSum([][]byte{lengthBytes, blockData})
|
||||
if checkSum != calculated {
|
||||
return nil, errors.New(fmt.Sprintf("invalid checksum expected 0x%x got 0x%x", calculated, checkSum))
|
||||
return nil, fmt.Errorf("invalid checksum expected 0x%x got 0x%x", calculated, checkSum)
|
||||
}
|
||||
|
||||
return &SignerResponse{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue