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