We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f523170 + 206ca28 commit 3ad7229Copy full SHA for 3ad7229
index.ts
@@ -284,8 +284,7 @@ export class PythonShell extends EventEmitter{
284
return pyshell.on('message', function (message) {
285
output.push(message);
286
}).end(function (err) {
287
- if (err) return callback(err);
288
- return callback(null, output.length ? output : null);
+ return callback(err? err : null, output.length ? output : null);
289
});
290
};
291
0 commit comments