Skip to content

fix(proposalutils): remove duplicate Timelock nil check in TimelockConfig.Validate#21711

Open
cuiweixie wants to merge 1 commit intosmartcontractkit:developfrom
cuiweixie:fix/proposalutils-dedupe-timelock-validate
Open

fix(proposalutils): remove duplicate Timelock nil check in TimelockConfig.Validate#21711
cuiweixie wants to merge 1 commit intosmartcontractkit:developfrom
cuiweixie:fix/proposalutils-dedupe-timelock-validate

Conversation

@cuiweixie
Copy link

Summary

Removes a redundant s.Timelock == nil check in TimelockConfig.Validate. Timelock is already validated at the beginning of the function.

Testing

  • Not run (small validation cleanup; existing callers unchanged)

…nfig.Validate

Timelock presence is already validated at the start of Validate; drop the
redundant check before callProxy validation.
@cuiweixie cuiweixie requested a review from a team as a code owner March 26, 2026 02:34
Copilot AI review requested due to automatic review settings March 26, 2026 02:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Risk Rating: LOW

Removes a redundant s.Timelock == nil validation in TimelockConfig.Validate within the deployment proposal utilities. The function already checks s.Timelock near the beginning, so the later check was unreachable duplication.

Changes:

  • Delete the duplicate missing timelock nil-check in TimelockConfig.Validate.

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.

3 participants