Skip to content

node/cli: simplify prune distance flags in Cobra path#18418

Closed
radik878 wants to merge 1 commit intoerigontech:mainfrom
radik878:refactor/prune-distance-cobra-flags
Closed

node/cli: simplify prune distance flags in Cobra path#18418
radik878 wants to merge 1 commit intoerigontech:mainfrom
radik878:refactor/prune-distance-cobra-flags

Conversation

@radik878
Copy link
Copy Markdown
Contributor

ApplyFlagsForEthConfigCobra previously initialized prune distances with math.MaxUint64 and then conditionally overwrote them based on *uint64 pointers returned by pflag. Those pointers are never nil, so the extra initialization and nil checks were dead code and did not affect behavior.

@Giulio2002
Copy link
Copy Markdown
Collaborator

🤖 Closed by automated review.

This PR appears to be an AI-generated stylistic/convention change (dead code removal, unused variable cleanup, redundant code removal) from a non-core contributor.

These types of changes are not being accepted at this time. If you believe this was closed in error, please reach out to a maintainer.

@Giulio2002 Giulio2002 closed this Feb 17, 2026
@Giulio2002
Copy link
Copy Markdown
Collaborator

[SharovBot] 🤖 Closed by automated review.

This PR appears to be an AI-generated stylistic/convention change (dead code removal, unused variable cleanup, redundant code removal) from a non-core contributor.

These types of changes are not being accepted at this time. If you believe this was closed in error, please reach out to a maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants