return null for error in callback #28

Merged
merged 1 commit into from Jan 21, 2012

Projects

None yet

2 participants

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

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 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