chore(share): fix no-unused-vars and prefer-const lint issues

This commit is contained in:
Panagiotis Papadopoulos 2025-03-10 08:10:44 +01:00
parent cd9d90323c
commit c2aae45456
3 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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()) {

View File

@ -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();
}
);