From 52779f6a9c8d56c8f92628fcdb1f41fd6a17a624 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 3 Apr 2025 07:59:55 +0100 Subject: [PATCH] Remove unused catch binding --- 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 4321a8ff0..f6e956479 100644 --- a/src/worker-script/index.js +++ b/src/worker-script/index.js @@ -118,7 +118,7 @@ res) => { throw Error('Not found in cache'); } // Attempt to fetch new .traineddata file - } catch (e) { + } catch { newData = true; log(`[${workerId}]: Load ${lang}.traineddata from ${langPath}`); if (typeof _lang === 'string') {