diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-01-10 05:53:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 05:53:17 +0800 |
commit | 02b67558e8eaa7b34a28b8dd0223824bbbb52349 (patch) | |
tree | 33bbc5057d4546d93d6d0e92b90eef19b49abb83 /core/blockchain.go | |
parent | 91c8f87fb128c070b6c557a142e25d4428c96487 (diff) | |
parent | b9b3efb09f9281a5859646d2dcf36b5813132efb (diff) | |
download | dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.tar.gz dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.tar.zst dexon-02b67558e8eaa7b34a28b8dd0223824bbbb52349.zip |
Merge pull request #3535 from fjl/all-ineffassign
all: fix ineffectual assignments
Diffstat (limited to 'core/blockchain.go')
-rw-r--r-- | core/blockchain.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/blockchain.go b/core/blockchain.go index c3530b93c..8eb7de982 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1054,11 +1054,10 @@ func (st *insertStats) report(chain []*types.Block, index int) { start, end := chain[st.lastIndex], chain[index] txcount := countTransactions(chain[st.lastIndex : index+1]) - extra := "" + var hashes, extra string if st.queued > 0 || st.ignored > 0 { extra = fmt.Sprintf(" (%d queued %d ignored)", st.queued, st.ignored) } - hashes := "" if st.processed > 1 { hashes = fmt.Sprintf("%x… / %x…", start.Hash().Bytes()[:4], end.Hash().Bytes()[:4]) } else { |