Skip to content

Commit

Permalink
No panic if source filter is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
aliok committed Jul 26, 2024
1 parent 218fe34 commit 192021c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/graph/constructor.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (g *Graph) fetchEventTypes(ctx context.Context, config ConstructorConfig, e

if err == nil {
for _, eventType := range eventTypes.Items {
if config.ShouldAddEventType(eventType) {
if config.ShouldAddEventType == nil || config.ShouldAddEventType(eventType) {
err := g.AddEventType(eventType)
if err != nil {
return err
Expand Down

0 comments on commit 192021c

Please sign in to comment.