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

Avoid passing along Nils #581

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Avoid passing along Nils #581

merged 1 commit into from
Jan 7, 2025

Conversation

ugexe
Copy link
Owner

@ugexe ugexe commented Jan 7, 2025

Calling a non existent method on Nil returns Nil, which means %x{$foo.as} does not work as expected if $foo happens to be Nil. This filters our Nils from search results to avoid the aforementioned issue.

Resolves #568

Calling a non existent method on Nil returns Nil, which means
`%x{$foo.as}` does not work as expected if `$foo` happens to be
Nil. This filters our Nils from search results to avoid the
aforementioned issue.
@ugexe ugexe merged commit f80d1a3 into main Jan 7, 2025
5 checks passed
@ugexe ugexe deleted the ugexe/fix-nil-method-call branch January 7, 2025 03:56
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.

Zef::Repository.candidates gets surprised by Nil return of search calls (related to native dependencies?)
1 participant