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 no-unused-vars and prefer-const lint issues
Panagiotis Papadopoulosc2aae454562a
diff --git a/src/share/shaca/entities/sattachment.ts b/src/share/shaca/entities/sattachment.tsindex 612ba81f34..e8d1e50d99 100644--- a/src/share/shaca/entities/sattachment.ts+++ b/src/share/shaca/entities/sattachment.ts@@ -47,7 +47,7 @@ class SAttachment extends AbstractShacaEntity {}}- let content = row.content;+ const content = row.content;if (this.hasStringContent()) {return content === null ? "" : content.toString("utf-8");diff --git a/src/share/shaca/entities/snote.ts b/src/share/shaca/entities/snote.tsindex b9e1a8b234..e4ba17d0c1 100644--- a/src/share/shaca/entities/snote.ts+++ b/src/share/shaca/entities/snote.ts@@ -105,7 +105,7 @@ class SNote extends AbstractShacaEntity {}}- let content = row.content;+ const content = row.content;if (this.hasStringContent()) {return content === null ? "" : content.toString("utf-8");@@ -212,7 +212,7 @@ class SNote extends AbstractShacaEntity {/*** @throws Error in case of invalid JSON*/- getJsonContent(): any | null {+ getJsonContent(): unknown | null {const content = this.getContent();if (typeof content !== "string" || !content || !content.trim()) {diff --git a/src/share/shaca/shaca_loader.ts b/src/share/shaca/shaca_loader.tsindex 474f5be37a..93783e7a0c 100644--- a/src/share/shaca/shaca_loader.ts+++ b/src/share/shaca/shaca_loader.ts@@ -93,7 +93,7 @@ function ensureLoad() {eventService.subscribe([eventService.ENTITY_CREATED, eventService.ENTITY_CHANGED, eventService.ENTITY_DELETED, eventService.ENTITY_CHANGE_SYNCED, eventService.ENTITY_DELETE_SYNCED],- ({ entityName, entity }) => {+ ({ _entityName, _entity }) => {shaca.reset();});