Skip to content

Commit

Permalink
Chore: redundant operation on java.time object (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbmalkovsky authored Nov 19, 2024
1 parent df0d8e8 commit f808f5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ protected void validateBill(Bill bill, List<BillItems> billItems, List<BillPayme

LocalDateTime today = TimeTools.getNow();
LocalDateTime upDate;
LocalDateTime firstPay = LocalDateTime.from(today);
LocalDateTime lastPay = LocalDateTime.from(today);
LocalDateTime firstPay = today;
LocalDateTime lastPay = today;

LocalDateTime billDate = bill.getDate();
if (!billPayments.isEmpty()) {
Expand Down

0 comments on commit f808f5a

Please sign in to comment.