Replace all throw error(...) with just error(...)

`throw` is not needed in this case, because `error(...)` already
  raises exception (so `throw` is unreachable). Also after previous
  commit compiler reports `UNREACHABLE_CODE` warning on such `throw`
This commit is contained in:
Dmitriy Novozhilov
2021-07-02 12:42:19 +03:00
committed by TeamCityServer
parent ae608ea67f
commit 3f5e6a79c7
6 changed files with 8 additions and 8 deletions
@@ -143,7 +143,7 @@ private class JsonParser(val content: String) {
fun parse(): JsonNode {
val result = parseNode()
skipSpaces()
if (charCode != -1) throw error("End of input expected")
if (charCode != -1) error("End of input expected")
return result
}