[minor] fix compiler warnings in scripting modules

This commit is contained in:
Ilya Chernikov
2021-07-20 16:19:17 +02:00
committed by teamcityserver
parent 59304ba70c
commit 8eb7e719d3
5 changed files with 5 additions and 3 deletions
@@ -34,7 +34,7 @@ private class InternalScriptingRunSuspend<T> : Continuation<T> {
fun await(): T = synchronized(this) {
while (true) {
when (val result: Result<T>? = this.result) {
when (this.result) {
null -> @Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN") (this as Object).wait()
else -> break
}