Skip to content

Commit

Permalink
Cleaning history when 0 values
Browse files Browse the repository at this point in the history
  • Loading branch information
goulven authored and goulven committed Sep 10, 2024
1 parent d253a72 commit 98a9420
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ private void computePriceHistory(AggregatedPrices prices, ProductCondition state
}


// Cleaning 0 values
history.removeIf(e -> e.getPrice() == 0.0);

// Setting
switch (state) {
case NEW:
Expand Down

0 comments on commit 98a9420

Please sign in to comment.