disbale lines violating no-unsafe-finally

This commit is contained in:
Marcello Fitton
2026-03-03 12:45:14 -08:00
parent d713dab3eb
commit 746ae514c3
3 changed files with 3 additions and 0 deletions
@@ -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);
}
}