Skip to content

Commit

Permalink
Merge pull request BNYMellon#150 from emilie-robichaud/master
Browse files Browse the repository at this point in the history
Add else block to show what will happen if we get a drink item!
  • Loading branch information
prathasirisha authored Sep 25, 2023
2 parents fe93c8a + a7a2266 commit 06c9941
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 06c9941

Please sign in to comment.