Skip to content

Commit e472caf

Browse files
committed
Remove redundant else-branch in exhaustive when-expression
This is just removal of unreachable code.
1 parent c339d1e commit e472caf

File tree

1 file changed

+0
-2
lines changed
  • kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin

1 file changed

+0
-2
lines changed

kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin/util.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ internal fun KaType.render(inFunctionType: Boolean = false): String {
162162
"${it.variance}" +
163163
(if (it.variance != Variance.INVARIANT) " " else "") +
164164
it.type.render(this@render is KaFunctionType)
165-
166-
else -> throw IllegalStateException("Unhandled type argument type ${it.javaClass}")
167165
}
168166
}.also { append(it) }
169167
}

0 commit comments

Comments
 (0)