Skip to content

Commit

Permalink
Revert "fix: error should be thrown (#1817)" (#1864)
Browse files Browse the repository at this point in the history
This reverts commit e7a3489.
  • Loading branch information
alexander-fenster authored Feb 2, 2023
1 parent 0099ddc commit 4489fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ Root.prototype.load = function load(filename, options, callback) {
/* istanbul ignore if */
if (!callback)
return;
if (sync)
throw err;
var cb = callback;
callback = null;
if (sync)
throw err;
cb(err, root);
}

Expand Down

0 comments on commit 4489fa7

Please sign in to comment.