fix: addが正常に追加されていない問題を修正

This commit is contained in:
usbharu 2023-03-24 18:34:03 +09:00
parent a454db6da2
commit e4ca1a2274
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,9 @@ open class Object : JsonLd {
companion object {
@JvmStatic
protected fun add(list:List<String>,type:String):List<String> {
list.toMutableList().add(type)
return list.distinct()
val toMutableList = list.toMutableList()
toMutableList.add(type)
return toMutableList.distinct()
}
}
}