Fix linting issue: remove unnecessary type conversion

This commit is contained in:
sivaratrisrinivas 2025-03-12 18:51:00 -05:00
parent ad8884cac5
commit 0bfcdcdee1

View file

@ -1447,7 +1447,7 @@ func findMergeBlock(ctx *cli.Context, db ethdb.Database) (uint64, error) {
}))
// Check if we found a valid merge block
if mergeBlock < uint64(*headNumber) {
if mergeBlock < *headNumber {
header := rawdb.ReadHeader(db, rawdb.ReadCanonicalHash(db, mergeBlock), mergeBlock)
if header != nil && header.Difficulty.Sign() == 0 {
found = true