Skip to content

Commit

Permalink
style: decrease로 메서드 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kmebin committed Nov 8, 2023
1 parent 475b857 commit c0264bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/moabam/api/domain/entity/Bug.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private int validateBugCount(int bug) {
public void use(BugType bugType, int price) {
int currentBug = getBug(bugType);
validateEnoughBug(currentBug, price);
decrementBug(bugType, price);
decreaseBug(bugType, price);
}

private int getBug(BugType bugType) {
Expand All @@ -66,7 +66,7 @@ private void validateEnoughBug(int currentBug, int price) {
}
}

private void decrementBug(BugType bugType, int price) {
private void decreaseBug(BugType bugType, int price) {
switch (bugType) {
case MORNING -> this.morningBug -= price;
case NIGHT -> this.nightBug -= price;
Expand Down

0 comments on commit c0264bb

Please sign in to comment.