projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
🐛 Fix deduplication
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
notify
/
ListNotification.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/notify/ListNotification.kt
b/src/main/kotlin/net/pterodactylus/sone/notify/ListNotification.kt
index
dccc430
..
99fd89a
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/notify/ListNotification.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/notify/ListNotification.kt
@@
-52,7
+52,7
@@
class ListNotification<T> : TemplateNotification {
fun setElements(elements: Collection<T>) {
realElements.clear()
- realElements.addAll(elements)
+ realElements.addAll(elements
.distinct()
)
touch()
}