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 link delegation returning nil for field with value false #128

Merged
merged 2 commits into from
Aug 26, 2017

Conversation

ivoanjo
Copy link
Contributor

@ivoanjo ivoanjo commented Aug 26, 2017

Whenever a resource includes a field that is false, trying to access it through a Link returned nil, rather than false.

This is because Link confused the false response with the resource not actually handling the value, and then tried to use the delegation as if a collection method was being called on the resource.

Fixes #126

Whenever a resource includes a field that is `false`, trying to access
it through a `Link` returned `nil`, rather than `false`.

This is because `Link` confused the `false` response with the resource
not actually handling the value, and then tried to use the delegation as
if a collection method was being called on the resource.

Fixes #126
@dblock dblock merged commit 7e7dad2 into master Aug 26, 2017
@dblock
Copy link
Collaborator

dblock commented Aug 26, 2017

Perfect.

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.

None yet

2 participants