remove unnecessary await

This commit is contained in:
Lost Paul 2025-05-30 20:48:23 +02:00
parent e512c581db
commit 2f09e34431
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ export class FileExplorerOverview {
if (folderNote) { pathBlacklist.push(folderNote.path); }
let excludedFolder = undefined;
if (plugin instanceof FolderNotesPlugin) {
excludedFolder = await getExcludedFolder(plugin, child.path, true);
excludedFolder = getExcludedFolder(plugin, child.path, true);
}
if (excludedFolder?.excludeFromFolderOverview) { return; }

View file

@ -258,7 +258,7 @@ export class FolderOverview {
let isExcludedFromOverview = false;
if (plugin instanceof FolderNotesPlugin) {
isExcludedFromOverview = (await getExcludedFolder(plugin, file.path, true))?.excludeFromFolderOverview ?? false;
isExcludedFromOverview = (getExcludedFolder(plugin, file.path, true))?.excludeFromFolderOverview ?? false;
}
if ((isBlacklisted && !this.yaml.showFolderNotes) || !isSubfolder || isSourceFile || isExcludedFromOverview) {