Skip to content

Commit 9369814

Browse files
committed
body needs to be changed to res.body
After changing the number of parameters in the callback, it needed to be reflected in the function body.
1 parent c50b9ac commit 9369814

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ var pageinated_api_call = module.exports.pageinated_api_call = function (path, a
274274
if (res.statusCode === 401 || res.statusCode === 403) {
275275
return callback(new Error('Github app is not authorized. Did you revoke access?'))
276276
}
277-
return callback(new Error('Status code is ' + res.statusCode + ' not 200. Body: ' + body))
277+
return callback(new Error('Status code is ' + res.statusCode + ' not 200. Body: ' + res.body))
278278
} else {
279279
debug("We did get an error from the API " + error);
280280
return callback(error, null);
@@ -307,6 +307,7 @@ function getRepos(token, username, callback) {
307307
// see strider-extension-loader for details
308308

309309
/* jshint -W064 */
310+
/* jshint -W040 */
310311
Step(
311312
function fetchReposAndOrgs() {
312313
// First fetch the user's repositories and organizations in parallel.

0 commit comments

Comments
 (0)