Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yoff committed Oct 9, 2024
1 parent 65dd816 commit ce5f900
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,18 @@ async function run() {
);
}

if (await codeql.supportsFeature(ToolsFeature.PythonDefaultIsToNotExtractStdlib)) {
if (
await codeql.supportsFeature(
ToolsFeature.PythonDefaultIsToNotExtractStdlib,
)
) {
// We are in the case where the default has switched to not extracting the stdlib.
if (!(await features.getValue(Feature.CodeqlActionPythonDefaultIsToNotExtractStdlib, codeql))) {
if (
!(await features.getValue(
Feature.CodeqlActionPythonDefaultIsToNotExtractStdlib,
codeql,
))
) {
// We are in a situation where the feature flag is not rolled out,
// so we need to suppress the new default behavior.
core.exportVariable("CODEQL_EXTRACTOR_PYTHON_EXTRACT_STDLIB", "true");
Expand Down

0 comments on commit ce5f900

Please sign in to comment.