Skip to content

Commit 13b5223

Browse files
committed
prettier
1 parent 9dcaefb commit 13b5223

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/components/links.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export async function readMarkdownSource(f) {
3838
// Recursively find all md files in the directory.
3939
export async function* readMarkdownFiles(root, subpath = "/") {
4040
for (const fname of await readdir(root + subpath)) {
41-
if (!fname.includes(".") && (await stat(root + subpath + fname)).isDirectory()) yield* readMarkdownFiles(root, subpath + fname + "/");
42-
else if (fname.endsWith(".md")) yield subpath + fname;
41+
if (!fname.includes(".") && (await stat(root + subpath + fname)).isDirectory()) {
42+
yield* readMarkdownFiles(root, subpath + fname + "/");
43+
} else if (fname.endsWith(".md")) {
44+
yield subpath + fname;
45+
}
4346
}
4447
}

0 commit comments

Comments
 (0)