Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

null vs. 0 on return

  • Loading branch information...
commit 978346b1345ee986fbec3e4bed5c53a09cdf05cd 1 parent 1637d92
@edwardhotchkiss authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/node-klout.js
  2. +1 −1  package.json
View
4 lib/node-klout.js
@@ -14,13 +14,13 @@
callback(error, null);
} else {
if (response.statusCode === 403) {
- callback(null, 0);
+ callback(null, null);
} else if (response.statusCode === 200) {
var data = JSON.parse(body);
var klout = data.users[0].kscore;
callback(null, klout);
} else {
- callback(null, 0);
+ callback(null, null);
}
}
});
View
2  package.json
@@ -2,7 +2,7 @@
"author": "Edward Hotchkiss <e@ingk.com>",
"name": "node-klout",
"description": "Extremely reliable Node.js Klout API Wrapper",
- "version": "0.0.2",
+ "version": "0.0.3",
"repository": {
"type": "git",
"url": "git://github.com/edwardhotchkiss/node-klout.git"
Please sign in to comment.
Something went wrong with that request. Please try again.