Skip to content

Commit

Permalink
refactoring iluwatar#1012: Remove isInfoEnabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
kongleong86 committed Oct 28, 2023
1 parent 0e0a10d commit 287da96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ public InvalidUser(String userName) {

@Override
public void show() {
if (LOGGER.isInfoEnabled()) {
LOGGER.info(String.format("Invalid user: %s", userName));
}
LOGGER.info(String.format("Invalid user: %s", userName));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public OutOfStock(String userName, String itemName) {

@Override
public void show() {
if (LOGGER.isInfoEnabled()) {
LOGGER.info(String.format("Out of stock: %s for user = %s to buy", itemName, userName));
}
LOGGER.info(String.format("Out of stock: %s for user = %s to buy", itemName, userName));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public Double getPrice() {

@Override
public void show() {
if (LOGGER.isInfoEnabled()) {
LOGGER.info(String.format("Receipt: %s paid", price));
}
LOGGER.info(String.format("Receipt: %s paid", price));
}
}

0 comments on commit 287da96

Please sign in to comment.