Skip to content

Commit

Permalink
fix: tf metaErr
Browse files Browse the repository at this point in the history
  • Loading branch information
jshlbrd committed Oct 25, 2023
1 parent 3342f64 commit dcee46b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion transform/meta_err.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ type metaErr struct {
}

func (tf *metaErr) Transform(ctx context.Context, msg *message.Message) ([]*message.Message, error) {
msgs, _ := tf.tf.Transform(ctx, msg)
msgs, err := tf.tf.Transform(ctx, msg)
if err != nil {
//nolint: nilerr // ignore non-nil error
return []*message.Message{msg}, nil
}

return msgs, nil
}

Expand Down

0 comments on commit dcee46b

Please sign in to comment.