crypto: fix golint warnings (#16710)

This commit is contained in:
kiel barry
2018-05-08 16:17:09 -07:00
committed by Felix Lange
parent eab6e5a317
commit ba975dc093
5 changed files with 13 additions and 13 deletions

View File

@ -49,7 +49,7 @@ func randSig() []byte {
// tests for malleability
// highest bit of signature ECDSA s value must be 0, in the 33th byte
func compactSigCheck(t *testing.T, sig []byte) {
var b int = int(sig[32])
var b = int(sig[32])
if b < 0 {
t.Errorf("highest bit is negative: %d", b)
}