Skip to content

Commit

Permalink
Merge pull request #165 from GreenmaskIO/fix/random_email_parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
wwoytenko authored Aug 17, 2024
2 parents b7f7cef + 77777b5 commit 769461a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/postgres/transformers/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (rit *EmailTransformer) Transform(ctx context.Context, r *toolkit.Record) (
}

func (rit *EmailTransformer) setupTemplateContext(originalEmail []byte, r *toolkit.Record) error {
if rit.localPartTemplate != nil && rit.domainTemplate != nil && !rit.keepOriginalDomain {
if rit.localPartTemplate == nil && rit.domainTemplate == nil && !rit.keepOriginalDomain {
return nil
}
rit.rrctx.setRecord(r)
Expand Down

0 comments on commit 769461a

Please sign in to comment.