Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Sep 4, 2024
1 parent 5e0b69c commit 7fa7efc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/lib/email_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,7 @@ def clean_message(body)

def to_utf8(content)
return unless content.present?
content = content.gsub!("\0", '') # remove null characters

content.gsub!("\0", "") # remove null characters
begin
detection = CharlockHolmes::EncodingDetector.detect(content)
if detection[:confidence] > 95
Expand Down

0 comments on commit 7fa7efc

Please sign in to comment.