Skip to content

Conversation

OliverJAsh
Copy link
Contributor

Beforehand, if there was no entity but there was an error, that error would not be propagated (via the callback).

Beforehand, if there was no entity but there was an error, that error would not be propagated (via the callback).
@serby
Copy link
Owner

serby commented Nov 12, 2013

@serby
Copy link
Owner

serby commented Nov 12, 2013

... so it might end up passing back false or undefined. I always assume error === null on a successful result.

@serby
Copy link
Owner

serby commented Nov 12, 2013

I agree with the first block though.

@OliverJAsh
Copy link
Contributor Author

Hmm, it could be falsy, yes… not sure what you want to do about that?

@serby
Copy link
Owner

serby commented Nov 12, 2013

I would ignore it and normalise the output as null, so that internals are not leaked out in a success state.

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.

2 participants