Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Then it will always be truthly if it returns an object, or 0 means success? :)

The proper way is callback convention err. Then you can write if(!err) ...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: