Skip to content

Fixes #30 #31

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

Merged
merged 1 commit into from
Apr 27, 2022
Merged

Fixes #30 #31

merged 1 commit into from
Apr 27, 2022

Conversation

ansg191
Copy link
Owner

@ansg191 ansg191 commented Apr 27, 2022

Fixes #30 where a nil request into a GenericWorkInfo was causing type assertion panics.

This was caused by a type assertion assuming that nil's can be converted
 into any type. If the req passes nil now, the run method will convert
 it into the default value for that type (nil in the case of pointers).

Signed-off-by: Anshul Gupta <[email protected]>
@ansg191 ansg191 merged commit 9c1049e into master Apr 27, 2022
@ansg191 ansg191 deleted the 30-workinfo-pancking-on-nil branch April 27, 2022 05:43
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.

WorkInfo panicking on nil request
1 participant