Permalink
Browse files

no need for body.id on the list query

  • Loading branch information...
1 parent 16bcd88 commit 9e457e6dbbc182336decb08ce334c8b8bf143c31 @forthehackofit forthehackofit committed Feb 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -50,7 +50,7 @@ Tomato.prototype.getList = function(listType, listName, done) {
.send({ apiKey: this.key })
.end(function(err, res) {
var body = toJSON(res.text);
- var result = body && body.id ? body : undefined;
+ var result = body ? body : undefined;
return done(err, result);
});
};

0 comments on commit 9e457e6

Please sign in to comment.