Commit b53855d7 by Ben Drucker

Simplify resolving response body

parent f40ca241
...@@ -57,9 +57,7 @@ ClearbitClient.prototype.request = function (options) { ...@@ -57,9 +57,7 @@ ClearbitClient.prototype.request = function (options) {
user_agent: 'ClearbitNode/v' + pkg.version user_agent: 'ClearbitNode/v' + pkg.version
} }
) )
.spread(function (response) { .get(1);
return response.body;
});
}; };
module.exports = ClearbitClient; module.exports = ClearbitClient;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment