Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
apirom9 committed Mar 31, 2024
1 parent 347af35 commit a6b3acc
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.math.BigDecimal;
import java.util.List;
import java.util.Optional;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

Expand Down Expand Up @@ -59,10 +58,10 @@ public CartResponse getCartByUsername(String username) {
}

cartResponse.setGrandTotal(
cartResponse.getSubtotal()
cartResponse
.getSubtotal()
.subtract(cartResponse.getTotalDiscount())
.add(cartResponse.getShippingFee())
);
.add(cartResponse.getShippingFee()));

} else {
Cart cart = new Cart();
Expand Down

0 comments on commit a6b3acc

Please sign in to comment.