cmd, contracts, eth, p2p, signer, whisper: fixed ineffectual assignments (#19869)
Fixed assigning values to variables we don't end up using.
This commit is contained in:
committed by
Péter Szilágyi
parent
04e175b8ec
commit
a32a2b933a
@@ -130,7 +130,7 @@ func (peer *Peer) handshake() error {
|
||||
}
|
||||
}
|
||||
|
||||
isRemotePeerLightNode, err := s.Bool()
|
||||
isRemotePeerLightNode, _ := s.Bool()
|
||||
if isRemotePeerLightNode && isLightNode && isRestrictedLightNodeConnection {
|
||||
return fmt.Errorf("peer [%x] is useless: two light client communication restricted", peer.ID())
|
||||
}
|
||||
|
Reference in New Issue
Block a user