refactor: remove duplicate code and fmt
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -134,5 +134,4 @@ func TestProjecter(t *testing.T) {
|
||||
<-wait
|
||||
|
||||
is.Equal(len(events), 4)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user