File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ export async function runExtraction(
184
184
}
185
185
if ( config . buildMode ) {
186
186
if (
187
- language === String ( KnownLanguage . cpp ) &&
187
+ language === KnownLanguage . cpp &&
188
188
config . buildMode === BuildMode . Autobuild
189
189
) {
190
190
await setupCppAutobuild ( codeql , logger ) ;
@@ -195,7 +195,7 @@ export async function runExtraction(
195
195
// a stable path that caches can be restored into and that we can cache at the
196
196
// end of the workflow (i.e. that does not get removed when the scratch directory is).
197
197
if (
198
- language === String ( KnownLanguage . java ) &&
198
+ language === KnownLanguage . java &&
199
199
config . buildMode === BuildMode . None
200
200
) {
201
201
process . env [ "CODEQL_EXTRACTOR_JAVA_OPTION_BUILDLESS_DEPENDENCY_DIR" ] =
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export async function determineAutobuildLanguages(
72
72
* version of the CodeQL Action.
73
73
*/
74
74
const autobuildLanguagesWithoutGo = autobuildLanguages . filter (
75
- ( l ) => l !== String ( KnownLanguage . go ) ,
75
+ ( l ) => l !== KnownLanguage . go ,
76
76
) ;
77
77
78
78
const languages : Language [ ] = [ ] ;
Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ async function run() {
363
363
core . endGroup ( ) ;
364
364
365
365
// Set CODEQL_ENABLE_EXPERIMENTAL_FEATURES for rust
366
- if ( getOptionalInput ( "languages" ) ?. includes ( String ( KnownLanguage . rust ) ) ) {
366
+ if ( getOptionalInput ( "languages" ) ?. includes ( KnownLanguage . rust ) ) {
367
367
const feat = Feature . RustAnalysis ;
368
368
const minVer = featureConfig [ feat ] . minimumVersion as string ;
369
369
const envVar = "CODEQL_ENABLE_EXPERIMENTAL_FEATURES" ;
You can’t perform that action at this time.
0 commit comments