Skip to content

Commit

Permalink
Add else block to show what will happen if we get a drink item!
Browse files Browse the repository at this point in the history
Signed-off-by: Emilie <[email protected]>
  • Loading branch information
emilie-robichaud committed Sep 25, 2023
1 parent fe93c8a commit a7a2266
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ else if (item instanceof Donut)
Donut donut = (Donut) item;
foodItems.add(donut.getDonutType() + " donut");
}
else {
// it is a beverage, do nothing!
}
}
return foodItems;
}
Expand Down

0 comments on commit a7a2266

Please sign in to comment.