Skip to content

Commit fe8003d

Browse files
committedOct 31, 2024
Housekeeping
1 parent 2381052 commit fe8003d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed
 

‎packages/knip/src/ConfigurationChief.ts

-9
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,6 @@ export class ConfigurationChief {
287287
);
288288
}
289289

290-
private getAvailableWorkspacePkgNames(pkgNames: Iterable<string>) {
291-
const names = new Set<string>();
292-
for (const pkgName of pkgNames) {
293-
if (names.has(pkgName)) throw new ConfigurationError(`Duplicate package name: ${pkgName}`);
294-
if (!picomatch.isMatch(pkgName, this.ignoredWorkspacePatterns)) names.add(pkgName);
295-
}
296-
return names;
297-
}
298-
299290
private setIncludedWorkspaces() {
300291
if (this.workspace) {
301292
const dir = resolve(this.workspace);

0 commit comments

Comments
 (0)