-
Couldn't load subscription status.
- Fork 1.8k
Fix Context.Value. #1210
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
Fix Context.Value. #1210
Conversation
3609c3a to
72037cf
Compare
|
Rebased to force checks to run. |
|
Sorry @saschagrunert, I think I cancelled your approval when I pushed a new patch. |
|
Ping. |
|
@jcgregorio Can you pull in the default branch to fix the failing test please 🙏🏼 |
Before this change the added test would crash on a nil pointer dereference because the original code would only look in the local fileSet and not across all the fileSets.
22cde86 to
d56c85c
Compare
|
@lynncyrin Done! |
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.
🚚
Now that urfave/cli#1210 has landed. Change-Id: If8bffcb2e470e2d7285a4d2c8f1672650f0ec43f Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/363156 Auto-Submit: Joe Gregorio <[email protected]> Reviewed-by: Ravi Mistry <[email protected]> Commit-Queue: Ravi Mistry <[email protected]>
Fix Context.Value so that it looks across all fileSets when looking for the named flag.
What type of PR is this?
(REQUIRED)
What this PR does / why we need it:
(REQUIRED)
Before this change the added test would crash on a nil
pointer dereference because the original code would
only look in the local fileSet and not across all
the fileSets.
Which issue(s) this PR fixes:
(REQUIRED)
NONE
Testing
Added a test for Value, it currently had no test in context_test.go.
Without this change the test will crash.
Release Notes
(REQUIRED)