diff --git a/src/node/handler/ExportHandler.js b/src/node/handler/ExportHandler.js index fe7ab3db1..678519fbc 100644 --- a/src/node/handler/ExportHandler.js +++ b/src/node/handler/ExportHandler.js @@ -78,8 +78,9 @@ exports.doExport = function(req, res, padId, type) { exporttxt.getPadTXTDocument(padId, req.params.rev, function(err, txt) { - if(ERR(err)) return; - res.send(txt); + if(!err) { + res.send(txt); + } }); } else