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

fix: panic when method has no results #4

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

adamconnelly
Copy link
Owner

Generating mocks for interfaces containing methods with no results didn't work because the parsing code was panicking on nil results, and because the code generation attempted to return the result of a void method.

Generating mocks for interfaces containing methods with no results didn't work because the parsing code was panicking on nil results, and because the code generation attempted to return the result of a void method.
@adamconnelly adamconnelly force-pushed the adamc/support-void-methods branch from f0daadd to cabb520 Compare November 28, 2023 15:59
@adamconnelly adamconnelly merged commit cabb520 into main Nov 28, 2023
3 checks passed
@adamconnelly adamconnelly deleted the adamc/support-void-methods branch November 28, 2023 16:14
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.

1 participant