[IC] Remove unused variable declaration

Previously it was introduced to make `when` exhaustive, but now all the `when` operators on enums are exhaustive
This commit is contained in:
Alexander Likhachev
2022-07-05 18:00:07 +02:00
committed by Space
parent 0c4598a00e
commit 18560db373
@@ -137,8 +137,7 @@ class IncrementalJsCompilerRunner(
caches.lookupCache.lookupSymbols.map { if (it.scope.isBlank()) it.name else it.scope }.distinct()
)
@Suppress("UNUSED_VARIABLE") // for sealed when
val unused = when (classpathChanges) {
when (classpathChanges) {
is ChangesEither.Unknown -> {
reporter.report { "Could not get classpath's changes: ${classpathChanges.reason}" }
return CompilationMode.Rebuild(classpathChanges.reason)