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

nil check error before type assertion follow-up from #2341 #2368

Merged
merged 2 commits into from
Sep 13, 2022

Conversation

StevenACoffman
Copy link
Collaborator

@StevenACoffman StevenACoffman commented Sep 13, 2022

In #2341 I hastily type asserted from the error interface to the *gqlerror.Error but I didn't first check for nil, and other people using errcode.Set in other places could have tripped on the loaded footgun I left lying around.

Signed-off-by: Steve Coffman steve@khanacademy.org

Signed-off-by: Steve Coffman <steve@khanacademy.org>
Signed-off-by: Steve Coffman <steve@khanacademy.org>
@coveralls
Copy link

coveralls commented Sep 13, 2022

Coverage Status

Coverage increased (+0.03%) to 75.452% when pulling e8fc425 on nil_check into 59493af on master.

@StevenACoffman StevenACoffman changed the title nil check error before cast from #2341 nil check error before type assertion follow-up from #2341 Sep 13, 2022
@StevenACoffman StevenACoffman merged commit 462025b into master Sep 13, 2022
@StevenACoffman StevenACoffman deleted the nil_check branch September 13, 2022 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants