Skip to content

Commit

Permalink
Satisfying test for TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
micahbule authored and marcbachmann committed May 15, 2019
1 parent 9349b6f commit 4e15719
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ PDF.prototype.exec = function PdfExec (callback) {
// Also, as per your script and standards, having a code value of 1 means one can always assume that
// an error occured.
if ((typeof code !== 'undefined' && code !== null) && code !== 0) {

var error = null;
var error = null

if (err) {
// Rudimentary checking if err is an instance of the Error class
Expand All @@ -137,7 +136,7 @@ PDF.prototype.exec = function PdfExec (callback) {
var postfix = stderr.length ? '\n' + Buffer.concat(stderr).toString() : ''
if (postfix) err.message += postfix

return callback(error);
return callback(error)
}

callback(null, data)
Expand Down

0 comments on commit 4e15719

Please sign in to comment.