mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-16 01:12:05 +01:00
Throw away older certifications in map constructor of CertificationSet
This commit is contained in:
parent
7d9463ec8e
commit
05f72dd549
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ class CertificationSet(
|
||||||
certifications: Map<String?, List<Certification>>) {
|
certifications: Map<String?, List<Certification>>) {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
certifications.forEach { (t, u) -> _certifications[t] = u.toMutableList() }
|
certifications.forEach { (_, certifications) ->
|
||||||
|
certifications.forEach {
|
||||||
|
add(it)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private val _certifications: MutableMap<String?, MutableList<Certification>> = mutableMapOf()
|
private val _certifications: MutableMap<String?, MutableList<Certification>> = mutableMapOf()
|
||||||
|
|
Loading…
Reference in a new issue