refactor: remove duplicate code and fmt

This commit is contained in:
xuu committed 2023-07-22 08:52:15 -06:00
1 parent 0f665d3484
commit 70c6996f39
16 files changed
+229 -306

No files matched your search

-1
View File
@@ -21,7 +21,6 @@ func New(_ context.Context, fns ...func(event.Event) []event.Event) *projector {
return &projector{fns: fns}
}
func (p *projector) Apply(e *ev.EventStore) {
up := e.Driver
for up != nil {
if op, ok := up.(*projector); ok {
-1
View File
@@ -134,5 +134,4 @@ func TestProjecter(t *testing.T) {
<-wait
is.Equal(len(events), 4)
}