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

Make a minor simplification to CommitBuilder::write #3178

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

emesterhazy
Copy link
Collaborator

There's no need to have a block of code at the beginning of the function to cache the rewrite source id. We can simply check the necessary condition before calling record_rewritten_commit.

This tweak makes the function a little easier to read since we don't check the condition until we're ready to do the work.

There's no need to have a block of code at the beginning of the function to
cache the rewrite source id. We can simply check the necessary condition before
calling record_rewritten_commit.

This tweak makes the function a little easier to read since we don't check the
condition until we're ready to do the work.
@emesterhazy emesterhazy merged commit b8aa9a1 into main Mar 2, 2024
16 checks passed
@emesterhazy emesterhazy deleted the push-tpwovkpqlpyt branch March 2, 2024 18:40
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