From bf42535d31eeecc12a1c2163e6644241fba9fa7a Mon Sep 17 00:00:00 2001 From: Matthew Halpern Date: Tue, 19 Feb 2019 03:25:42 -0800 Subject: [PATCH] core: remove redundant parentheses (#19106) --- core/blockchain.go | 2 +- core/blockchain_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index feb9fb9426..b6605e66c9 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 0372a9848d..a16b3ba8af 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) } }