Him188 преди 6 години
родител
ревизия
bf9dcbca18
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/WeakRef.kt

+ 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()
 }
 
 /**