diff --git a/pkg/restaurants/fresh.go b/pkg/restaurants/fresh.go index dc0230b..4d5dc0e 100644 --- a/pkg/restaurants/fresh.go +++ b/pkg/restaurants/fresh.go @@ -84,6 +84,9 @@ func (restaurant *FreshRestaurant) Parse() { meals[curIndex] = append(meals[curIndex], line[10:]) prices[curIndex] = append(prices[curIndex], -1) } + if curIndex < 0 { + curIndex++ + } if !pricesSection && line[1] == '.' && len(line) > 2 { meals[curIndex] = append(meals[curIndex], line[3:]) }