Fix NON_EXHAUSTIVE_WHEN_STATEMENT warnings in project code

This commit is contained in:
Dmitriy Novozhilov
2021-07-13 15:48:59 +03:00
committed by teamcityserver
parent a6edd852ff
commit f3116cb64a
35 changed files with 75 additions and 27 deletions
@@ -97,6 +97,7 @@ class DeadCodeElimination(
val remapper = SourceMapLocationRemapper(sourceMap)
statements.forEach { remapper.remap(it) }
}
null -> {}
}
block.statements += statements
file.moduleName?.let { dce.moduleMapping[block] = it }
@@ -65,12 +65,14 @@ class InlinerCycleReporter(
}
try {
when (functionVisitingState[definition.function]) {
VisitedState.IN_PROCESS -> {
reportInlineCycle(call, definition.function)
return
}
VisitedState.PROCESSED -> return
null -> {}
}
functionVisitingState[function] = VisitedState.IN_PROCESS