Skip to content

Commit

Permalink
Merge pull request #718 from TugboatQA/717--use-args-callback
Browse files Browse the repository at this point in the history
fix: call args.callback() in exec.inspect() #717
  • Loading branch information
apocas authored Mar 11, 2023
2 parents 74a57a8 + c57ab16 commit 36b8c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Exec.prototype.inspect = function(opts, callback) {
});
} else {
this.modem.dial(optsf, function(err, data) {
if (err) return callback(err, data);
if (err) return args.callback(err, data);
args.callback(err, data);
});
}
Expand Down

0 comments on commit 36b8c46

Please sign in to comment.