Skip to content

Commit e429f30

Browse files
committed
Missing a return in the crawl alg
1 parent 47d63d1 commit e429f30

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/bin/tools/crawl.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@ async function crawlRec(params: {
1111

1212
const recursiveCallResults: string[][] = [];
1313

14+
/*
15+
for (const fileOrDirectoryBasename of await readdir(dirPath)) {
16+
17+
const fileOrDirectoryPath = pathJoin(dirPath, fileOrDirectoryBasename);
18+
19+
if ((await lstat(fileOrDirectoryPath)).isDirectory()) {
20+
const dirPath = fileOrDirectoryPath;
21+
22+
if (!getDoCrawlInDir({ dirPath })) {
23+
continue;
24+
}
25+
26+
recursiveCallResults.push(
27+
await crawlRec({
28+
dirPath,
29+
getDoCrawlInDir
30+
})
31+
continue;
32+
);
33+
}
34+
35+
const filePath = fileOrDirectoryPath;
36+
37+
filePaths.push(filePath);
38+
39+
}
40+
*/
41+
1442
await Promise.all(
1543
(
1644
await readdir(dirPath)
@@ -30,6 +58,8 @@ async function crawlRec(params: {
3058
getDoCrawlInDir
3159
})
3260
);
61+
62+
return;
3363
}
3464

3565
const filePath = fileOrDirectoryPath;

0 commit comments

Comments
 (0)