Commit 9b4fd595 by Tuukka Kivilahti

continue is sometimes better than return

1 parent e5dca588
......@@ -297,12 +297,12 @@ public class BillBean implements BillBeanLocal {
private void createPlaceslots(Bill bill) {
for (BillLine bl : bill.getBillLines()) {
if (bl == null) {
return;
continue;
}
Product prod = bl.getLineProduct();
if (prod == null || prod.getPlaces() == null || prod.getPlaces().isEmpty()) {
// Not a place product.
return;
continue;
}
int count = bl.getQuantity().intValue();
Date now = new Date();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!