From d20deaf59860dbb785131f0d965d1be79703ead1 Mon Sep 17 00:00:00 2001 From: binsee <5285894+binsee@users.noreply.github.com> Date: Fri, 23 Sep 2022 18:44:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20error=20should=20be=20thr?= =?UTF-8?q?own?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/root.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/root.js b/src/root.js index df6f11fa6..6067ca69c 100644 --- a/src/root.js +++ b/src/root.js @@ -98,10 +98,10 @@ Root.prototype.load = function load(filename, options, callback) { /* istanbul ignore if */ if (!callback) return; - var cb = callback; - callback = null; if (sync) throw err; + var cb = callback; + callback = null; cb(err, root); }