Skip to content

Commit

Permalink
Fix paths/paths-ignore warning that would appear unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Jan 11, 2024
1 parent 3b54300 commit 94e6891
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/init.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ function printPathFiltersWarning(config: configUtils.Config, logger: Logger) {
// Index include/exclude/filters only work in javascript/python/ruby.
// If any other languages are detected/configured then show a warning.
if (
(config.originalUserInput.paths?.length !== 0 ||
config.originalUserInput["paths-ignore"]?.length !== 0) &&
(config.originalUserInput.paths ||
config.originalUserInput["paths-ignore"]) &&
!config.languages.every(isScannedLanguage)
) {
logger.warning(
Expand Down

0 comments on commit 94e6891

Please sign in to comment.