add next if
This commit is contained in:
parent
9ee7940a87
commit
c98fd8aa21
1 changed files with 1 additions and 3 deletions
|
@ -38,9 +38,7 @@ module FoodsoftArticleImport
|
||||||
# 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?
|
next if matched.nil?
|
||||||
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