Skip to content

Commit c237da1

Browse files
committed
Fix linting errors
1 parent cbc79bf commit c237da1

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/analyze.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,23 @@ export interface QueriesStatusReport {
8080
analyze_failure_language?: string;
8181
}
8282

83-
async function setupPythonExtractor(logger: Logger, features: FeatureEnablement, codeql: CodeQL) {
83+
async function setupPythonExtractor(
84+
logger: Logger,
85+
features: FeatureEnablement,
86+
codeql: CodeQL
87+
) {
8488
const codeqlPython = process.env["CODEQL_PYTHON"];
8589
if (codeqlPython === undefined || codeqlPython.length === 0) {
8690
// If CODEQL_PYTHON is not set, no dependencies were installed, so we don't need to do anything
8791
return;
8892
}
8993

90-
if (await features.getValue(
91-
Feature.DisablePythonDependencyInstallation,
92-
codeql
93-
)) {
94+
if (
95+
await features.getValue(Feature.DisablePythonDependencyInstallation, codeql)
96+
) {
9497
logger.warning(
9598
"Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." +
96-
"\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11."
99+
"\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11."
97100
);
98101
return;
99102
}

0 commit comments

Comments
 (0)