Him188 6 роки тому
батько
коміт
bf9dcbca18

+ 1 - 1
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/WeakRef.kt

@@ -18,7 +18,7 @@ inline class UnsafeWeakRef<T>(private val weakRef: WeakRef<T>) {
      * val bot: Bot by param.unsafeWeakRef()
      * ```
      */
-    operator fun getValue(thisRef: Any?, property: KProperty<*>): T? = this.get()
+    operator fun getValue(thisRef: Any?, property: KProperty<*>): T = this.get()
 }
 
 /**