diff --git a/quartz/util/fileTrie.ts b/quartz/util/fileTrie.ts index e0bf58b61..ed87b4fe1 100644 --- a/quartz/util/fileTrie.ts +++ b/quartz/util/fileTrie.ts @@ -105,9 +105,8 @@ export class FileTrieNode { const segments = [currentPath, node.slugSegment] const fullPath = joinSegments(...segments) as FullSlug - const indexQualifiedPath = node.isFolder && node.depth > 0 ? - joinSegments(fullPath, "index") as FullSlug : - fullPath + const indexQualifiedPath = + node.isFolder && node.depth > 0 ? (joinSegments(fullPath, "index") as FullSlug) : fullPath const result: [FullSlug, FileTrieNode][] = [[indexQualifiedPath, node]]