Skip to content

Commit

Permalink
🪲 Manage correctly the output when selecting the 'preserve none' choice
Browse files Browse the repository at this point in the history
  • Loading branch information
evrignaud committed Oct 23, 2016
1 parent c0b3d3e commit c3cb813
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/fim/model/DuplicateResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ protected boolean manageAnswers(List<FileState> duplicatedFiles, String inputLin
break;
} else if ("n".equals(answer) || "none".equals(answer)) {
gotCorrectAnswer = true;

// Add the additional file that we will remove. It was not counted in the initial wasted space.
duplicatedFilesCount++;
totalWastedSpace += duplicatedFiles.get(0).getFileLength();
break;
}

Expand Down

0 comments on commit c3cb813

Please sign in to comment.