Skip to content

Commit

Permalink
refactor: refine callback params of plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
avwo committed Nov 19, 2019
1 parent 0c618ff commit 37f45a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/load-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -960,10 +960,10 @@ module.exports = function(options, callback) {
request(opts, function(err, body, res) {
if (body && res.statusCode == 200) {
try {
return cb(JSON.parse(body) || '');
return cb(JSON.parse(body) || '', res);
} catch (e) {}
}
cb('');
cb('', res);
});
};

Expand Down

0 comments on commit 37f45a4

Please sign in to comment.