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

return null for error in callback #28

Merged
merged 1 commit into from Jan 21, 2012
Merged

Conversation

schloerke
Copy link
Contributor

The paradigm for node.js callbacks is to return a 'null' object if no errors are found for the error value.

This allows for quick

if (responseError) fix_it();

Best,
Barret

@3rd-Eden
Copy link
Owner

There are probably a few more cases where i'm not returning null but false so beware of that as well if you are going to strictly check for null values.

But thanks for the pull request!

3rd-Eden added a commit that referenced this pull request Jan 21, 2012
return null for error in callback
@3rd-Eden 3rd-Eden merged commit 191dac1 into 3rd-Eden:master Jan 21, 2012
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