Skip to content

Commit 38fbaa9

Browse files
authored
refactor(source): remove useless withoutTrailingSlash call
1 parent 554218a commit 38fbaa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module/src/runtime/utils/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function getCollectionSourceById(id: string, sources: ResolvedCollectionS
3232

3333
let fsPath
3434
const [fixPart] = source.include.includes('*') ? source.include.split('*') : ['', source.include]
35-
const fixed = withoutTrailingSlash(withoutLeadingSlash(fixPart || '/'))
35+
const fixed = withoutTrailingSlash(fixPart || '/')
3636
if (withoutLeadingSlash(fixed) === withoutLeadingSlash(prefix)) {
3737
fsPath = prefixAndPath
3838
}

0 commit comments

Comments
 (0)