diff --git a/src/main/kotlin/dev/usbharu/hideout/ap/Object.kt b/src/main/kotlin/dev/usbharu/hideout/ap/Object.kt index e67dd46f..72bec7f7 100644 --- a/src/main/kotlin/dev/usbharu/hideout/ap/Object.kt +++ b/src/main/kotlin/dev/usbharu/hideout/ap/Object.kt @@ -13,8 +13,9 @@ open class Object : JsonLd { companion object { @JvmStatic protected fun add(list:List,type:String):List { - list.toMutableList().add(type) - return list.distinct() + val toMutableList = list.toMutableList() + toMutableList.add(type) + return toMutableList.distinct() } } }