mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +08:00
chore(share): fix no-unused-vars and prefer-const lint issues
This commit is contained in:
parent
cd9d90323c
commit
c2aae45456
@ -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");
|
||||
|
@ -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()) {
|
||||
|
@ -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();
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user