mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Perf: avoid string comparision
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user