Skip to content

Commit 3b8af1c

Browse files
committed
perf(fmt): skip unused ignore matcher wrapper
1 parent f6d9189 commit 3b8af1c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/rstack/src/fmt/ignore.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ const createIgnoreMatcher = async ({
6262
config.rootPath,
6363
[...defaultIgnorePatterns, ...config.ignorePatterns].join('\n'),
6464
);
65+
if (ignorePaths.length === 0) {
66+
return configMatcher;
67+
}
68+
6569
const ignoreMatchers = await Promise.all(
6670
ignorePaths.map((ignorePath) => loadIgnoreMatcher(cwd, ignorePath)),
6771
);

0 commit comments

Comments
 (0)