Removing eject
This commit is contained in:
parent
8ec9711e58
commit
5c68d8697d
@ -18,9 +18,7 @@ class EventDispatcher(val eventStore: EventStore) {
|
|||||||
for (candidate in candidates) {
|
for (candidate in candidates) {
|
||||||
val result = listener.onEvent(candidate, events)
|
val result = listener.onEvent(candidate, events)
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
|
|
||||||
eventStore.persist(result)
|
eventStore.persist(result)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user