-
Notifications
You must be signed in to change notification settings - Fork 203
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
Put short-circuiting code in one place #1635
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1635 +/- ##
==========================================
+ Coverage 66.63% 66.85% +0.21%
==========================================
Files 204 204
Lines 14760 14788 +28
==========================================
+ Hits 9835 9886 +51
+ Misses 4169 4145 -24
- Partials 756 757 +1
Continue to review full report at Codecov.
|
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.
Looks great! This way around makes it a much nicer idiom in the codebase.
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.
Overall, I like the approach of ensuring we share more immutable values, reducing memory churn. Do any of your new withers need to use an internal copy()
func to follow our prior conventions?
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.
A little tidy-up.