Skip to content

Commit

Permalink
Update execute.js
Browse files Browse the repository at this point in the history
  • Loading branch information
knyga authored May 16, 2019
1 parent a062a92 commit c930576
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,5 @@ module.exports = async (printer, html, isCut = true) => {
printer.cut();
}

return new Promise((resolve, reject) => printer.execute((err) => {
if(err) {
reject(err);
} else {
resolve();
}
}));
};
return printer.execute();
};

0 comments on commit c930576

Please sign in to comment.