Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/forkid: refactor nextForkHash #1177

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

qinglin89
Copy link
Contributor

@qinglin89 qinglin89 commented Nov 13, 2022

Description

Refactor the code for better structure of efficiency.

Rationale

  • We don't need a else statement while the if statement has a return
  • there's no need to use the internal variable next

Example

NA

Changes

Notable changes:
remove the useless code.

@qinglin89 qinglin89 added the r4r ready for review label Nov 13, 2022
@unclezoro
Copy link
Collaborator

Much better PR description is required.

Copy link
Collaborator

@unclezoro unclezoro left a comment

Choose a reason for hiding this comment

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

Explain the motivation of this PR.

@qinglin89 qinglin89 merged commit dbc70ee into bnb-chain:develop Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r4r ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants