From 8425341ae093066923408151d249d4400aee1545 Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Thu, 11 Jun 2020 13:53:30 +0100 Subject: [PATCH] change && to || --- lib/analysis-paths.js | 2 +- src/analysis-paths.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/analysis-paths.js b/lib/analysis-paths.js index cd0a2dcff..23481b192 100644 --- a/lib/analysis-paths.js +++ b/lib/analysis-paths.js @@ -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 diff --git a/src/analysis-paths.ts b/src/analysis-paths.ts index 3c4954574..2b7451e7c 100644 --- a/src/analysis-paths.ts +++ b/src/analysis-paths.ts @@ -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