Skip to content

Commit b2f94b2

Browse files
committed
fix: 去除没有用上的代码
1 parent f3dcfe6 commit b2f94b2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/source.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const source = loader({
2424
source: docs.toFumadocsSource(),
2525
transformers: [
2626
({ storage }) => {
27-
let count = 0;
2827
for (const path of storage.getFiles()) {
2928
const file = storage.read(path);
3029
if (
@@ -37,7 +36,6 @@ export const source = loader({
3736

3837
// 强制覆盖 Fumadocs-MDX 预生成的 slugs
3938
file.slugs = newSlugs;
40-
count++;
4139
}
4240
}
4341
},

0 commit comments

Comments
 (0)