File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,7 @@ PDF.prototype.exec = function PdfExec (callback) {
122
122
// Also, as per your script and standards, having a code value of 1 means one can always assume that
123
123
// an error occured.
124
124
if ( ( typeof code !== 'undefined' && code !== null ) && code !== 0 ) {
125
-
126
- var error = null ;
125
+ var error = null
127
126
128
127
if ( err ) {
129
128
// 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
137
if ( postfix ) err . message += postfix
139
138
140
- return callback ( error ) ;
139
+ return callback ( error )
141
140
}
142
141
143
142
callback ( null , data )
You can’t perform that action at this time.
0 commit comments