aboutsummaryrefslogtreecommitdiffstats
path: root/les/protocol.go
diff options
context:
space:
mode:
authorGagziW <leon.stanko@rwth-aachen.de>2018-05-03 16:35:06 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-03 16:35:06 +0800
commit7c02933275d8f67fbdf78cdc05c0e09af4ebc657 (patch)
tree0f22379f2b9cb4d2c8731c570409c2b191a1603d /les/protocol.go
parentf2447bd4c35573d40e2ef678809657c5a1d4e999 (diff)
downloaddexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.gz
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.bz2
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.lz
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.xz
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.zst
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.zip
les: changed if-else blocks to conform with golint (#16658)
Diffstat (limited to 'les/protocol.go')
-rw-r--r--les/protocol.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/les/protocol.go b/les/protocol.go
index e1c4625bc..46bff2635 100644
--- a/les/protocol.go
+++ b/les/protocol.go
@@ -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 {