add next if

This commit is contained in:
viehlieb 2023-01-20 14:00:18 +01:00
parent 9ee7940a87
commit c98fd8aa21

View file

@ -38,9 +38,7 @@ module FoodsoftArticleImport
# Split string and remove beginning "
matched = row[2].gsub(/^\"/, "").gsub(/\"$/, "").match(REGEX[:main])
if matched.nil?
puts "No regular article data for #{row[1]}: #{row[2]}"
next
next if matched.nil?
else
name, units, price_high, price_low = matched.captures