Skip to content

Conversation

olleolleolle
Copy link
Collaborator

@olleolleolle olleolleolle commented Apr 28, 2021

The problem was that a method which would return a list could return nil instead of the empty list. This PR changes that to always return a list.

This commit also refactors the name of a method to reflect that it is a
predicate method.

Also: a YARD annotation, using the built-in 'void' type.

Fixes #954

This commit also refactors the name of a method to reflect that it is a
predicate method.

Also: a YARD annotation, using the built-in 'void' type.

Fixes #954
@olleolleolle olleolleolle merged commit c596513 into master Apr 28, 2021
@olleolleolle olleolleolle deleted the fix-nomethod-error-954 branch April 28, 2021 10:25
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.

Unable to run, undefined method `include?' for nil:NilClass (NoMethodError)
1 participant