Skip to content

Commit

Permalink
avoid calling removeFile() twice in the same block
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Sep 13, 2024
1 parent d43d36d commit 5dad227
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1798,9 +1798,8 @@ void processFileHistoryBased(IndexDownArgs args, File file, String path) throws
boolean matchOK = (isWithDirectoryCounts || isCountingDeltas) &&
checkSettings(termFile, termPath);
if (!matchOK) {
removeFile(false);
addWorkHistoryBased(args, termFile, termPath);
deletedUidsHere.add(removeFile(false));
addWorkHistoryBased(args, termFile, termPath);
}
} else {
deletedUidsHere.add(removeFile(!fileExists));
Expand Down

0 comments on commit 5dad227

Please sign in to comment.