mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 14:20:24 +08:00
Fix build
This commit is contained in:
parent
fff94b23e0
commit
ddf8ecf744
@ -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
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user