From 58d28944d30207d41b21547b5e96ff19d9f47e2d Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 8 Aug 2022 22:49:14 -0700 Subject: [PATCH] Ran linter --- src/worker-script/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker-script/index.js b/src/worker-script/index.js index c0c0fa0..4d46754 100644 --- a/src/worker-script/index.js +++ b/src/worker-script/index.js @@ -102,7 +102,7 @@ const loadLanguage = async ({ const fetchUrl = `${path}/${lang}.traineddata${gzip ? '.gz' : ''}`; const resp = await (isWebWorker ? fetch : adapter.fetch)(fetchUrl); if (!resp.ok) { - throw Error(`Network error while fetching ${fetchUrl}. Response code: ${resp.status}`) + throw Error(`Network error while fetching ${fetchUrl}. Response code: ${resp.status}`); } data = await resp.arrayBuffer(); } else {