mirror of https://github.com/usbharu/Hideout.git
fix: addが正常に追加されていない問題を修正
This commit is contained in:
parent
081be4e305
commit
4e613c4590
|
@ -13,8 +13,9 @@ open class Object : JsonLd {
|
||||||
companion object {
|
companion object {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
protected fun add(list:List<String>,type:String):List<String> {
|
protected fun add(list:List<String>,type:String):List<String> {
|
||||||
list.toMutableList().add(type)
|
val toMutableList = list.toMutableList()
|
||||||
return list.distinct()
|
toMutableList.add(type)
|
||||||
|
return toMutableList.distinct()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue