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

clone: don't swallow error in should_checkout #6727

Merged
merged 1 commit into from Feb 4, 2024

Conversation

ethomson
Copy link
Member

@ethomson ethomson commented Feb 4, 2024

When determining whether to check out a branch, we did not actually look at should_checkout's possible error condition. Disconnect the boolean "should checkout" value from the potential error code so that it no longer looks like a function that can be treated as if it returns a boolean.

When determining whether to check out a branch, we did not actually look
at `should_checkout`'s possible error condition. Disconnect the boolean
"should checkout" value from the potential error code so that it no
longer looks like a function that can be treated as if it returns a
boolean.
@ethomson ethomson merged commit f6d1cd7 into main Feb 4, 2024
17 checks passed
@ethomson ethomson deleted the ethomson/should_checkout_error branch February 5, 2024 09:26
@ethomson ethomson added the bug label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant