diff options
author | Matthew Halpern <matthalp@google.com> | 2019-02-19 19:25:42 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-02-19 19:25:42 +0800 |
commit | bf42535d31eeecc12a1c2163e6644241fba9fa7a (patch) | |
tree | 7a07b0b9d9173632ec04223e35f8b19202fd9bf2 /core | |
parent | b5e5b3567c61ecbfd9094307e4efa53e3be3e23e (diff) | |
download | go-tangerine-bf42535d31eeecc12a1c2163e6644241fba9fa7a.tar go-tangerine-bf42535d31eeecc12a1c2163e6644241fba9fa7a.tar.gz go-tangerine-bf42535d31eeecc12a1c2163e6644241fba9fa7a.tar.bz2 go-tangerine-bf42535d31eeecc12a1c2163e6644241fba9fa7a.tar.lz go-tangerine-bf42535d31eeecc12a1c2163e6644241fba9fa7a.tar.xz go-tangerine-bf42535d31eeecc12a1c2163e6644241fba9fa7a.tar.zst go-tangerine-bf42535d31eeecc12a1c2163e6644241fba9fa7a.zip |
core: remove redundant parentheses (#19106)
Diffstat (limited to 'core')
-rw-r--r-- | core/blockchain.go | 2 | ||||
-rw-r--r-- | core/blockchain_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/blockchain.go b/core/blockchain.go index feb9fb942..b6605e66c 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -456,7 +456,7 @@ func (bc *BlockChain) repair(head **types.Block) error { if block == nil { return fmt.Errorf("missing block %d [%x]", (*head).NumberU64()-1, (*head).ParentHash()) } - (*head) = block + *head = block } } diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 0372a9848..a16b3ba8a 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -1412,7 +1412,7 @@ func benchmarkLargeNumberOfValueToNonexisting(b *testing.B, numTxs, numBlocks in } b.StopTimer() if got := chain.CurrentBlock().Transactions().Len(); got != numTxs*numBlocks { - b.Fatalf("Transactions were not included, expected %d, got %d", (numTxs * numBlocks), got) + b.Fatalf("Transactions were not included, expected %d, got %d", numTxs*numBlocks, got) } } |