Remove unnecessary "if" in buildTranslationConfig
Remove unnecessary if for debugParser in buildTranslationConfig() because it is already covered in normalize()
MODIFY
src/main/java/de/fraunhofer/aisec/codyze/config/Configuration.kt
src/main/java/de/fraunhofer/aisec/codyze/config/Configuration.kt
@@ -135,7 +135,7 @@ class Configuration {
this.normalize()
val translationConfig =
TranslationConfiguration.builder()
- .debugParser(if (executionMode.isLsp) false else cpg.debugParser)
+ .debugParser(cpg.debugParser)
.failOnError(cpg.failOnError)
.codeInNodes(cpg.codeInNodes)
.loadIncludes(cpg.translation.analyzeIncludes)

Remove unnecessary "if" in buildTranslationConfig (#468)

Remove unnecessary if for debugParser in buildTranslationConfig() because it is already covered in normalize()

Co-authored-by: Florian Wendland <florian.wendland@aisec.fraunhofer.de>