From 0cacd48458da337e5b3333fa5b6e44603eedb572 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Sat, 8 Mar 2025 21:23:27 -0800 Subject: [PATCH] fmt --- quartz/util/fileTrie.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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]]