small fixes

This commit is contained in:
Simon Cambier
2024-10-26 11:07:21 +02:00
parent ec82bd29fa
commit efd99b67a0
3 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ export class EmbedsRepository {
this.embeds.delete(oldPath)
}
// If the file is a note referencing other files
this.embeds.forEach((referencedBy, key) => {
this.embeds.forEach((referencedBy, _key) => {
if (referencedBy.has(oldPath)) {
referencedBy.delete(oldPath)
referencedBy.add(newPath)
@@ -38,7 +38,7 @@ export class EmbedsRepository {
}
public refreshEmbedsForNote(filePath: string): void {
this.embeds.forEach((referencedBy, key) => {
this.embeds.forEach((referencedBy, _key) => {
if (referencedBy.has(filePath)) {
referencedBy.delete(filePath)
}