Fix build

This commit is contained in:
Him188 2020-05-28 13:54:19 +08:00
parent fff94b23e0
commit ddf8ecf744

View File

@ -5,7 +5,6 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import kotlinx.io.core.Input import kotlinx.io.core.Input
import net.mamoe.mirai.utils.FileCacheStrategy import net.mamoe.mirai.utils.FileCacheStrategy
import net.mamoe.mirai.utils.MiraiExperimentalAPI
import java.awt.image.BufferedImage import java.awt.image.BufferedImage
import java.net.URL import java.net.URL
@ -45,5 +44,9 @@ internal actual class DeferredReusableInput actual constructor(
return delegate?.writeTo(out) ?: error("DeferredReusableInput not yet initialized") return delegate?.writeTo(out) ?: error("DeferredReusableInput not yet initialized")
} }
override fun asInput(): Input {
return delegate?.asInput() ?: error("DeferredReusableInput not yet initialized")
}
actual val initialized: Boolean get() = delegate != null actual val initialized: Boolean get() = delegate != null
} }