Perf: avoid string comparision

This commit is contained in:
SukkaW
2024-12-22 00:54:08 +08:00
parent 57aeb267f6
commit af04018be9
3 changed files with 15 additions and 16 deletions

View File

@@ -23,13 +23,6 @@ export const buildCommon = task(require.main === module, __filename)(async (span
const paths = await new Fdir()
.withRelativePaths()
// .exclude((dirName, dirPath) => {
// if (dirName === 'domainset' || dirName === 'ip' || dirName === 'non_ip') {
// return false;
// }
// console.error(picocolors.red(`[build-comman] Unknown dir: ${dirPath}`));
// return true;
// })
.filter((filepath, isDirectory) => {
if (isDirectory) return true;