Skip to content

Commit

Permalink
changed return value to nil and feed output of one interceptor to inp…
Browse files Browse the repository at this point in the history
…ut of next one
  • Loading branch information
Cath3876 authored and matejpavlovic committed Dec 1, 2023
1 parent 6e382ed commit 32b1a70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/eventlog/multiinterceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ func (r *repeater) Intercept(events *events.EventList) (*events.EventList, error
if r == nil {
return events, nil
}

var err error
for _, i := range r.interceptors {
_, err := i.Intercept(events)
events, err = i.Intercept(events)
if err != nil {
return events, err
return nil, err
}
}
return events, nil
Expand Down

0 comments on commit 32b1a70

Please sign in to comment.