mirror of
https://github.com/lostpaul/obsidian-folder-overview.git
synced 2026-07-22 11:50:27 +00:00
remove unnecessary await
This commit is contained in:
parent
e512c581db
commit
2f09e34431
2 changed files with 2 additions and 2 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue