[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:
committed by
Space
parent
0c4598a00e
commit
18560db373
+1
-2
@@ -137,8 +137,7 @@ class IncrementalJsCompilerRunner(
|
|||||||
caches.lookupCache.lookupSymbols.map { if (it.scope.isBlank()) it.name else it.scope }.distinct()
|
caches.lookupCache.lookupSymbols.map { if (it.scope.isBlank()) it.name else it.scope }.distinct()
|
||||||
)
|
)
|
||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE") // for sealed when
|
when (classpathChanges) {
|
||||||
val unused = when (classpathChanges) {
|
|
||||||
is ChangesEither.Unknown -> {
|
is ChangesEither.Unknown -> {
|
||||||
reporter.report { "Could not get classpath's changes: ${classpathChanges.reason}" }
|
reporter.report { "Could not get classpath's changes: ${classpathChanges.reason}" }
|
||||||
return CompilationMode.Rebuild(classpathChanges.reason)
|
return CompilationMode.Rebuild(classpathChanges.reason)
|
||||||
|
|||||||
Reference in New Issue
Block a user