mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix lint
This commit is contained in:
@@ -33,9 +33,7 @@ module.exports = class OcrCommand extends Command {
|
||||
await worker.loadLanguage('eng');
|
||||
await worker.initialize('eng');
|
||||
let timedOut = false;
|
||||
let finished = false;
|
||||
const timeout = setTimeout(async () => {
|
||||
if (finished) return;
|
||||
timedOut = true;
|
||||
await worker.terminate();
|
||||
await reactIfAble(msg, msg.author, FAILURE_EMOJI_ID, '❌');
|
||||
|
||||
Reference in New Issue
Block a user