Skip to content

Commit

Permalink
Refactor(main): Default data to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Nov 28, 2016
1 parent 2b401de commit 5caeee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ module.exports = function (config) {
options.url += fixParams (request.params);

http.doRequest (options, function (err, res) {
var data = res && res.body || null;
var error;
var data = res && res.body || '';

if (err) {
doError ('request failed', err, res, request.callback);
Expand Down

0 comments on commit 5caeee2

Please sign in to comment.