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
@@ -190,7 +190,7 @@ open class KtFile(viewProvider: FileViewProvider, val isCompiled: Boolean) :
return stub
}
throw error("Illegal stub for KtFile: type=${this.javaClass}, stub=${stub?.javaClass} name=$name")
error("Illegal stub for KtFile: type=${this.javaClass}, stub=${stub?.javaClass} name=$name")
}
override fun getClasses(): Array<PsiClass> {