From c98fd8aa21d9812570435f74a1498af9af3b0b6c Mon Sep 17 00:00:00 2001 From: viehlieb Date: Fri, 20 Jan 2023 14:00:18 +0100 Subject: [PATCH] add next if --- lib/foodsoft_article_import/borkenstein.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/foodsoft_article_import/borkenstein.rb b/lib/foodsoft_article_import/borkenstein.rb index 409de20..0e37dd1 100644 --- a/lib/foodsoft_article_import/borkenstein.rb +++ b/lib/foodsoft_article_import/borkenstein.rb @@ -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