core: remove redundant parentheses (#19106)

This commit is contained in:
Matthew Halpern 2019-02-19 03:25:42 -08:00 committed by Péter Szilágyi
parent b5e5b3567c
commit bf42535d31
2 changed files with 2 additions and 2 deletions

View File

@ -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
}
}

View File

@ -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)
}
}