Code layout improved.

This commit is contained in:
Martin Edenhofer 2015-10-08 17:24:21 +02:00
parent b7f5c4f705
commit e10f672649

View file

@ -2028,8 +2028,7 @@ Some Text',
def process(files) def process(files)
files.each { |file| files.each { |file|
parser = Channel::EmailParser.new result = Channel::EmailParser.new.process( { trusted: file[:trusted] }, file[:data] )
result = parser.process( { trusted: file[:trusted] }, file[:data] )
if file[:success] if file[:success]
if result && result.class == Array && result[1] if result && result.class == Array && result[1]
assert( true ) assert( true )