Skip to content

Commit

Permalink
Exclude empty config file path arrays from debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 16, 2024
1 parent f2732fa commit d288779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knip/src/WorkspaceWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class WorkspaceWorker {

const configFilePaths = await _glob({ patterns, cwd: baseOptions.rootCwd, dir: cwd, gitignore: false });

debugLogArray([name, plugin.title], 'config file paths', configFilePaths);
if (configFilePaths.length > 0) debugLogArray([name, plugin.title], 'config file paths', configFilePaths);

const options = {
...baseOptions,
Expand Down

0 comments on commit d288779

Please sign in to comment.