-
Notifications
You must be signed in to change notification settings - Fork 455
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
[api] placement: return early on placement err #1391
Conversation
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.
LGTM
If we don't exit early then we'll panic when trying to `.Proto()` the nil placement.
ae2b301
to
f566107
Compare
Codecov Report
@@ Coverage Diff @@
## master #1391 +/- ##
========================================
- Coverage 70.7% 70.7% -0.1%
========================================
Files 827 827
Lines 71228 71229 +1
========================================
Hits 50373 50373
+ Misses 17549 17548 -1
- Partials 3306 3308 +2
Continue to review full report at Codecov.
|
2 similar comments
Codecov Report
@@ Coverage Diff @@
## master #1391 +/- ##
========================================
- Coverage 70.7% 70.7% -0.1%
========================================
Files 827 827
Lines 71228 71229 +1
========================================
Hits 50373 50373
+ Misses 17549 17548 -1
- Partials 3306 3308 +2
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1391 +/- ##
========================================
- Coverage 70.7% 70.7% -0.1%
========================================
Files 827 827
Lines 71228 71229 +1
========================================
Hits 50373 50373
+ Misses 17549 17548 -1
- Partials 3306 3308 +2
Continue to review full report at Codecov.
|
If we don't exit early then we'll panic when trying to
.Proto()
thenil placement.