Skip to content

Commit c37e92b

Browse files
committed
chore(cli): clean up unused code
1 parent 0b5a84d commit c37e92b

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

cli/src/find-smells.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import path from 'path';
2-
import fs, { readdir } from 'node:fs/promises';
3-
import { glob, globSync, globStream, globStreamSync, Glob } from 'glob';
4-
import { join } from 'node:path';
2+
import fs from 'node:fs/promises';
3+
import { glob } from 'glob';
54
import { Smell, SmellDetector, SupportedLanguages } from 'smelly-detector';
65
import { SmellsAggreagtor, SmellsList } from 'smelly-detector/reports';
76
import { statSync } from 'fs';
@@ -17,13 +16,6 @@ if (!fileName) {
1716
process.exit();
1817
}
1918

20-
const walk: any = async (dirPath: string) => Promise.all(
21-
await readdir(dirPath, { withFileTypes: true }).then((entries: any) => entries.map((entry: any) => {
22-
const childPath = join(dirPath, entry.name);
23-
return entry.isDirectory() ? walk(childPath) : childPath;
24-
}))
25-
);
26-
2719
function isDirectorySync(path: string): boolean {
2820
try {
2921
const stats = statSync(path);

0 commit comments

Comments
 (0)