Fix typo that broke count().

This commit is contained in:
Nick Martin
2012-03-16 15:55:57 -07:00
parent 0187ee6db4
commit d7dd1d9408

View File

@@ -345,7 +345,7 @@ _Mongo.Cursor.prototype.count = function () {
future.ret([err, res]);
});
var err = future.wait();
var result = future.wait();
if (result[0])
throw result[0];
return result[1];