Skip to content

Commit

Permalink
chore: reject async err
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed May 17, 2024
1 parent 0861e7e commit 1823fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const marked = new Marked(
return new Promise((resolve, reject) => {
pygmentize({ lang, format: 'html' }, code, function (err, result) {
if (err) {
resolve(err);
reject(err);
return;
}

Expand Down

0 comments on commit 1823fea

Please sign in to comment.