We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a4061 commit 291330cCopy full SHA for 291330c
java/kotlin-extractor/src/main/kotlin/LinesOfCode.kt
@@ -16,9 +16,8 @@ class LinesOfCode(
16
val tw: FileTrapWriter,
17
val file: IrFile
18
) {
19
- val psi2Ir = getPsi2Ir(logger)
20
- init {
21
- if (psi2Ir == null) {
+ val psi2Ir = getPsi2Ir(logger).also {
+ if (it == null) {
22
logger.warn("Lines of code will not be populated as Kotlin version is too old (${KotlinCompilerVersion.getVersion()})")
23
}
24
0 commit comments