Skip to content

Commit

Permalink
Use IOUtils to delete files
Browse files Browse the repository at this point in the history
  • Loading branch information
dungba88 committed Feb 28, 2024
1 parent 1de1325 commit 62b242d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1347,13 +1347,7 @@ public void close() throws IOException {
IOUtils.closeWhileHandlingException(metaOut, termsOut, indexOut, postingsWriter);
IOUtils.closeWhileHandlingException(tempIndexInputs);
}
for (String inputName : tempInputNames) {
try {
state.directory.deleteFile(inputName);
} catch (IOException ex) {

}
}
IOUtils.deleteFilesIgnoringExceptions(state.directory, tempInputNames);
}
}

Expand Down

0 comments on commit 62b242d

Please sign in to comment.