Eliminate some warnings (mostly redundant is checks in whens)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
3623f581b8
commit
9dc5354f24
@@ -35,8 +35,7 @@ abstract class JsCallDataRenderer : DiagnosticParameterRenderer<JsCallData> {
|
||||
override fun render(data: JsCallData, context: RenderingContext): String =
|
||||
when (data) {
|
||||
is JsCallDataWithCode -> format(data)
|
||||
is JsCallData -> data.message
|
||||
else -> throw AssertionError("Cannot render null data")
|
||||
else -> data.message
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user