add next keyword to really catch every reutrn
This commit is contained in:
parent
ab05688240
commit
9ee7940a87
1 changed files with 2 additions and 2 deletions
|
@ -33,14 +33,14 @@ module FoodsoftArticleImport
|
||||||
end
|
end
|
||||||
|
|
||||||
# check if the line is empty
|
# check if the line is empty
|
||||||
unless row[1].blank? || row[1] == "-"
|
next if row[1].blank? || row[1] == "-"
|
||||||
|
|
||||||
# Split string and remove beginning "
|
# Split string and remove beginning "
|
||||||
matched = row[2].gsub(/^\"/, "").gsub(/\"$/, "").match(REGEX[:main])
|
matched = row[2].gsub(/^\"/, "").gsub(/\"$/, "").match(REGEX[:main])
|
||||||
|
|
||||||
if matched.nil?
|
if matched.nil?
|
||||||
puts "No regular article data for #{row[1]}: #{row[2]}"
|
puts "No regular article data for #{row[1]}: #{row[2]}"
|
||||||
|
next
|
||||||
else
|
else
|
||||||
|
|
||||||
name, units, price_high, price_low = matched.captures
|
name, units, price_high, price_low = matched.captures
|
||||||
|
|
Loading…
Reference in a new issue