les: changed if-else blocks to conform with golint (#16658)

This commit is contained in:
GagziW
2018-05-03 01:35:06 -07:00
committed by Péter Szilágyi
parent f2447bd4c3
commit 7c02933275
4 changed files with 14 additions and 20 deletions

View File

@ -160,9 +160,8 @@ func (a *announceData) checkSignature(pubKey *ecdsa.PublicKey) error {
pbytes := elliptic.Marshal(pubKey.Curve, pubKey.X, pubKey.Y)
if bytes.Equal(pbytes, recPubkey) {
return nil
} else {
return errors.New("Wrong signature")
}
return errors.New("Wrong signature")
}
type blockInfo struct {