Skip to content

Commit 4489fa7

Browse files
authoredFeb 2, 2023
Revert "fix: error should be thrown (#1817)" (#1864)
This reverts commit e7a3489.
1 parent 0099ddc commit 4489fa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/root.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ Root.prototype.load = function load(filename, options, callback) {
9898
/* istanbul ignore if */
9999
if (!callback)
100100
return;
101-
if (sync)
102-
throw err;
103101
var cb = callback;
104102
callback = null;
103+
if (sync)
104+
throw err;
105105
cb(err, root);
106106
}
107107

0 commit comments

Comments
 (0)
Please sign in to comment.