mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 14:34:23 +02:00
fmt
This commit is contained in:
parent
51790b3926
commit
0cacd48458
@ -105,9 +105,8 @@ export class FileTrieNode<T extends FileTrieData = ContentDetails> {
|
|||||||
const segments = [currentPath, node.slugSegment]
|
const segments = [currentPath, node.slugSegment]
|
||||||
const fullPath = joinSegments(...segments) as FullSlug
|
const fullPath = joinSegments(...segments) as FullSlug
|
||||||
|
|
||||||
const indexQualifiedPath = node.isFolder && node.depth > 0 ?
|
const indexQualifiedPath =
|
||||||
joinSegments(fullPath, "index") as FullSlug :
|
node.isFolder && node.depth > 0 ? (joinSegments(fullPath, "index") as FullSlug) : fullPath
|
||||||
fullPath
|
|
||||||
|
|
||||||
const result: [FullSlug, FileTrieNode<T>][] = [[indexQualifiedPath, node]]
|
const result: [FullSlug, FileTrieNode<T>][] = [[indexQualifiedPath, node]]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user