Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(share): fix @typescript-eslint/no-unused-vars for unused note variable
Panagiotis Papadopouloscd9d90323cce
diff --git a/src/share/routes.ts b/src/share/routes.tsindex 90018ddabe..932adfaacd 100644--- a/src/share/routes.ts+++ b/src/share/routes.ts@@ -344,7 +344,6 @@ function register(router: Router) {shacaLoader.ensureLoad();const ancestorNoteId = req.query.ancestorNoteId ?? "_share";- let note;if (typeof ancestorNoteId !== "string") {res.status(400).json({ message: "'ancestorNoteId' parameter is mandatory." });@@ -352,7 +351,7 @@ function register(router: Router) {}// This will automatically return if no ancestorNoteId is provided and there is no shareIndex- if (!(note = checkNoteAccess(ancestorNoteId, req, res))) {+ if (!checkNoteAccess(ancestorNoteId, req, res)) {return;}