Fix golangci-lint warnings

This commit is contained in:
Jan Dittberner 2021-01-08 20:18:43 +01:00
parent 2fdde4024d
commit ecd1846975
2 changed files with 22 additions and 11 deletions

View file

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