mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Kotlin: Small code simplification
This commit is contained in:
@@ -16,9 +16,8 @@ class LinesOfCode(
|
||||
val tw: FileTrapWriter,
|
||||
val file: IrFile
|
||||
) {
|
||||
val psi2Ir = getPsi2Ir(logger)
|
||||
init {
|
||||
if (psi2Ir == null) {
|
||||
val psi2Ir = getPsi2Ir(logger).also {
|
||||
if (it == null) {
|
||||
logger.warn("Lines of code will not be populated as Kotlin version is too old (${KotlinCompilerVersion.getVersion()})")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user