From 8939984e8238ef1029bed8dd7dc5aa6d0a15dcda Mon Sep 17 00:00:00 2001 From: wit Date: Sun, 9 Nov 2025 11:52:35 +0800 Subject: [PATCH] core: fix unnecessary `fmt.Sprintf` --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index b7acd12aca..3d7cfc2686 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -711,7 +711,7 @@ func (bc *BlockChain) initializeHistoryPruning(latest uint64) error { // here, but it'd be a bit dangerous since they may not have intended this // action to happen. So just tell them how to do it. log.Error(fmt.Sprintf("Chain history mode is configured as %q, but database is not pruned.", bc.cfg.ChainHistoryMode.String())) - log.Error(fmt.Sprintf("Run 'geth prune-history' to prune pre-merge history.")) + log.Error("Run 'geth prune-history' to prune pre-merge history.") return errors.New("history pruning requested via configuration") } predefinedPoint := history.PrunePoints[bc.genesisBlock.Hash()]