Skip to content

Commit

Permalink
Insert assert
Browse files Browse the repository at this point in the history
  • Loading branch information
rihter007 committed Nov 20, 2015
1 parent 7d196a8 commit 9dcde15
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
54 changes: 26 additions & 28 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/java/com/scrumtrek/simplestore/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private double getBonusForTargetPriceCode(PriceCodes priceCode, int daysRented)
return calculateBonusForChildrensPriceCode(daysRented);
}

return 0;
throw new AssertionError();
}

private double calculateBonusForRegularPriceCode(int daysRented)
Expand Down

0 comments on commit 9dcde15

Please sign in to comment.