Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
indent pdfmerger file
Browse files Browse the repository at this point in the history
  • Loading branch information
karuppiah7890 committed Jul 13, 2019
1 parent a1490f1 commit bb7793e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/lib/PDFMerger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand All @@ -64,15 +64,15 @@ 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);
}

callback(null);
});

child.on('error', function(err) {
child.on('error', function (err) {
return callback(`Execution problem. ${err}`);
});
});
Expand Down

0 comments on commit bb7793e

Please sign in to comment.