-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Simplifying the flow #28010
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
Simplifying the flow #28010
Conversation
Looks good! Could you run clang-format really quickly to patch up the switch statement? |
Did but clang format causes some other changes as well for some reason. |
I recommend using the |
Done. thank you |
Addressed |
I managed to fix everything |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comments. Otherwise, seems fine to me.
Fixed and rebased! |
Done |
That looks better @swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sticking with us through the review!
No probs! |
To the average programmer, looking at the original code shows plenty of branches that result in returning None. Because there are all contained in else statements, they can be somewhat hard to follow. For this reason, I put the bottom else statement out of the clause, and have it so that after each brach, if nothing returns, it would go to one return None statement.
Resolves SR-NNNN.