mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-07-21 09:35:22 -04:00
disbale lines violating no-unsafe-finally
This commit is contained in:
@@ -105,6 +105,7 @@ function workspaceParsedFilesEndpoints(app) {
|
||||
console.error(e.message, e);
|
||||
return response.sendStatus(500).end();
|
||||
} finally {
|
||||
// eslint-disable-next-line
|
||||
if (!fileId) return;
|
||||
await WorkspaceParsedFiles.delete({ id: parseInt(fileId) });
|
||||
}
|
||||
|
||||
@@ -508,6 +508,7 @@ async function getDockerModels(basePath = null, task = "chat") {
|
||||
} catch (e) {
|
||||
DockerModelRunnerLLM.slog(`Error getting Docker models`, e);
|
||||
} finally {
|
||||
// eslint-disable-next-line
|
||||
return Object.values(availableModels).flatMap((m) => m.tags);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -369,6 +369,7 @@ async function getAllLemonadeModels(basePath = null, task = "chat") {
|
||||
} catch (e) {
|
||||
LemonadeLLM.slog(`Error getting Lemonade models`, e);
|
||||
} finally {
|
||||
// eslint-disable-next-line
|
||||
return Object.values(availableModels).flatMap((m) => m.tags);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user