Skip to content

Commit bf42535

Browse files
Matthalp-zzkaralabe
authored andcommitted
core: remove redundant parentheses (#19106)
1 parent b5e5b35 commit bf42535

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎core/blockchain.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ func (bc *BlockChain) repair(head **types.Block) error {
456456
if block == nil {
457457
return fmt.Errorf("missing block %d [%x]", (*head).NumberU64()-1, (*head).ParentHash())
458458
}
459-
(*head) = block
459+
*head = block
460460
}
461461
}
462462

‎core/blockchain_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ func benchmarkLargeNumberOfValueToNonexisting(b *testing.B, numTxs, numBlocks in
14121412
}
14131413
b.StopTimer()
14141414
if got := chain.CurrentBlock().Transactions().Len(); got != numTxs*numBlocks {
1415-
b.Fatalf("Transactions were not included, expected %d, got %d", (numTxs * numBlocks), got)
1415+
b.Fatalf("Transactions were not included, expected %d, got %d", numTxs*numBlocks, got)
14161416

14171417
}
14181418
}

0 commit comments

Comments
 (0)