Skip to content

Commit

Permalink
Updating DoWhileTask keepLastN iteration endIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharimalagi authored Apr 17, 2024
1 parent 97c0a5f commit 1a1b459
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public boolean execute(
.map(value -> (Integer) value);
if (keepLastN.isPresent() && doWhileTaskModel.getIteration() > keepLastN.get()) {
Integer iteration = doWhileTaskModel.getIteration();
IntStream.range(0, iteration - keepLastN.get())
IntStream.range(0, iteration - keepLastN.get() - 1)
.mapToObj(Integer::toString)
.forEach(doWhileTaskModel::removeOutput);
}
Expand Down

0 comments on commit 1a1b459

Please sign in to comment.