lib/eco/data/files/helpers.rb in eco-helpers-2.7.24 vs lib/eco/data/files/helpers.rb in eco-helpers-2.7.25

- old
+ new

@@ -26,9 +26,10 @@ content = get_file_content_with_encoding(file, encoding: encoding) return nil unless content content.scrub do |bytes| replacement = "<#{bytes.unpack1('H*')}>" + if tolerance <= 0 logger.error("There were more than 5 encoding errors in the file '#{file}'.") return content else tolerance -= 1