This commit is contained in:
parent
09ed5c108e
commit
ff80a109e8
@ -84,6 +84,9 @@ func (restaurant *FreshRestaurant) Parse() {
|
|||||||
meals[curIndex] = append(meals[curIndex], line[10:])
|
meals[curIndex] = append(meals[curIndex], line[10:])
|
||||||
prices[curIndex] = append(prices[curIndex], -1)
|
prices[curIndex] = append(prices[curIndex], -1)
|
||||||
}
|
}
|
||||||
|
if curIndex < 0 {
|
||||||
|
curIndex++
|
||||||
|
}
|
||||||
if !pricesSection && line[1] == '.' && len(line) > 2 {
|
if !pricesSection && line[1] == '.' && len(line) > 2 {
|
||||||
meals[curIndex] = append(meals[curIndex], line[3:])
|
meals[curIndex] = append(meals[curIndex], line[3:])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user