Skip to content

Commit 94e6891

Browse files
committed
Fix paths/paths-ignore warning that would appear unconditionally
1 parent 3b54300 commit 94e6891

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ function printPathFiltersWarning(config: configUtils.Config, logger: Logger) {
131131
// Index include/exclude/filters only work in javascript/python/ruby.
132132
// If any other languages are detected/configured then show a warning.
133133
if (
134-
(config.originalUserInput.paths?.length !== 0 ||
135-
config.originalUserInput["paths-ignore"]?.length !== 0) &&
134+
(config.originalUserInput.paths ||
135+
config.originalUserInput["paths-ignore"]) &&
136136
!config.languages.every(isScannedLanguage)
137137
) {
138138
logger.warning(

0 commit comments

Comments
 (0)