change && to ||
This commit is contained in:
parent
1f2cca021a
commit
8425341ae0
2 changed files with 2 additions and 2 deletions
2
lib/analysis-paths.js
generated
2
lib/analysis-paths.js
generated
|
|
@ -16,7 +16,7 @@ function includeAndExcludeAnalysisPaths(config, languages) {
|
|||
core.exportVariable('LGTM_INDEX_EXCLUDE', config.pathsIgnore.join('\n'));
|
||||
}
|
||||
function isInterpretedLanguage(language) {
|
||||
return language === 'javascript' && language === 'python';
|
||||
return language === 'javascript' || language === 'python';
|
||||
}
|
||||
// Index include/exclude only work in javascript and python
|
||||
// If some other language is detected/configured show a warning
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export function includeAndExcludeAnalysisPaths(config: configUtils.Config, langu
|
|||
}
|
||||
|
||||
function isInterpretedLanguage(language): boolean {
|
||||
return language === 'javascript' && language === 'python';
|
||||
return language === 'javascript' || language === 'python';
|
||||
}
|
||||
|
||||
// Index include/exclude only work in javascript and python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue