We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You have:
this.me = function(cb) { if (self.token) { self.get('/me', function(me) { cb(me); }); } else { cb(); } }
But the successful self.get function returns cb(null,result), so it should be:
this.me = function(cb) { if (self.token) { self.get('/me', function(err, me) { cb(me); }); } else { cb(); } }
Sorry for not just making the edit and submitting a pull request but I made a few other changes others may not want and this is a pretty minor fix :).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
You have:
this.me = function(cb) {
if (self.token) {
self.get('/me', function(me) {
cb(me);
});
} else {
cb();
}
}
But the successful self.get function returns cb(null,result), so it should be:
this.me = function(cb) {
if (self.token) {
self.get('/me', function(err, me) {
cb(me);
});
} else {
cb();
}
}
Sorry for not just making the edit and submitting a pull request but I made a few other changes others may not want and this is a pretty minor fix :).
The text was updated successfully, but these errors were encountered: