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:
Christian Muehlhaeuser
2019-07-22 13:34:41 +03:00
committed by Péter Szilágyi
parent 04e175b8ec
commit a32a2b933a
8 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -997,7 +997,7 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, pivot uint64)
// chain errors.
if n := len(headers); n > 0 {
// Retrieve the current head we're at
head := uint64(0)
var head uint64
if d.mode == LightSync {
head = d.lightchain.CurrentHeader().Number.Uint64()
} else {