We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9349b6f commit 4e15719Copy full SHA for 4e15719
1 file changed
lib/pdf.js
@@ -122,8 +122,7 @@ PDF.prototype.exec = function PdfExec (callback) {
122
// Also, as per your script and standards, having a code value of 1 means one can always assume that
123
// an error occured.
124
if ((typeof code !== 'undefined' && code !== null) && code !== 0) {
125
-
126
- var error = null;
+ var error = null
127
128
if (err) {
129
// Rudimentary checking if err is an instance of the Error class
@@ -137,7 +136,7 @@ PDF.prototype.exec = function PdfExec (callback) {
137
136
var postfix = stderr.length ? '\n' + Buffer.concat(stderr).toString() : ''
138
if (postfix) err.message += postfix
139
140
- return callback(error);
+ return callback(error)
141
}
142
143
callback(null, data)
0 commit comments