From bb7793e5de548c9dcc2dd3b05dc84a5fc2027c42 Mon Sep 17 00:00:00 2001 From: Karuppiah Natarajan Date: Sat, 13 Jul 2019 13:27:38 +0530 Subject: [PATCH] indent pdfmerger file --- source/lib/PDFMerger.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/lib/PDFMerger.js b/source/lib/PDFMerger.js index c898d9f..1d3af6a 100644 --- a/source/lib/PDFMerger.js +++ b/source/lib/PDFMerger.js @@ -21,7 +21,7 @@ function checkSrc(src, callback) { callback(null, norm_src); } -module.exports = function(src, dest, opts, callback) { +module.exports = function (src, dest, opts, callback) { const defaultOpts = { maxBuffer: 1024 * 500, // 500kb maxHeap: '' // for setting JVM heap limits @@ -49,11 +49,11 @@ module.exports = function(src, dest, opts, callback) { let command = [ `java -jar ${ - opts.maxHeap ? '-Xmx' + opts.maxHeap : '' + opts.maxHeap ? '-Xmx' + opts.maxHeap : '' } "${jarPath}" PDFMerger` ]; - checkSrc(src, function(err, norm_src) { + checkSrc(src, function (err, norm_src) { if (err) { return callback(err); } @@ -64,7 +64,7 @@ module.exports = function(src, dest, opts, callback) { delete opts.maxHeap; - const child = exec(command.join(' '), opts, function(err, stdout, stderr) { + const child = exec(command.join(' '), opts, function (err, stdout, stderr) { if (err) { return callback(err); } @@ -72,7 +72,7 @@ module.exports = function(src, dest, opts, callback) { callback(null); }); - child.on('error', function(err) { + child.on('error', function (err) { return callback(`Execution problem. ${err}`); }); });