Update Requestable.js by carterm · Pull Request #653 · github-tools/github

Expand Up @@ -184,7 +184,9 @@ class Requestable {
if (cb) { requestPromise.then((response) => { if (response.data && Object.keys(response.data).length > 0) { if (!response) { cb(null, null, response); } else if (response.data && Object.keys(response.data).length > 0) { // When data has results cb(null, response.data, response); } else if (config.method !== 'GET' && Object.keys(response.data).length < 1) { Expand Down