refactor: fix linting mistakes

This commit is contained in:
Kritagya Bhattarai (CalfMoon) 2026-03-28 21:53:47 +05:45
parent aa0987082e
commit a213c8b3c5
2 changed files with 7 additions and 8 deletions

View file

@ -37,7 +37,7 @@ export default class NodeFactor extends Plugin {
);
}
async onunload() {}
onunload() {}
private sizeCache: Map<string, number> = new Map();
private timeoutId: NodeJS.Timeout;
@ -105,13 +105,12 @@ export default class NodeFactor extends Plugin {
const childNode: ObsidianNode = value.target;
// Prevents looping if A -> B -> C -> D -> B
if (antiLoopSet.has(key)) return size;
size++;
const childSize = this.fwdNodeTreeSize(childNode, antiLoopSet);
size += childSize;
if (!antiLoopSet.has(key)) {
size++;
const childSize = this.fwdNodeTreeSize(childNode, antiLoopSet);
size += childSize;
}
});
return size;
}

View file

@ -62,7 +62,7 @@ export default class NodeFactorSettingTab extends PluginSettingTab {
new Setting(containerEl)
.setName("Character per weight")
.setDesc(
"Add 1 weight to node size per no of given Character (0 to disable).",
"Add 1 weight to node size per no of given character (0 to disable).",
)
.addSlider((slider) =>
slider