Skip to content

Commit e945268

Browse files
committed
Implement DELETE_INPUTS
1 parent e5f990b commit e945268

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/java/org/broadinstitute/dropseqrna/beadsynthesis/CorrectScrnaReadPairs.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,13 @@ protected int doWork() {
165165

166166
try {
167167
if (DELETE_INPUTS) {
168-
inputPaths.stream().forEach(p -> Files.delete(p));
168+
inputPaths.stream().forEach(p -> {
169+
try {
170+
Files.delete(p);
171+
} catch (IOException e) {
172+
throw new RuntimeIOException(e);
173+
}
174+
});
169175
}
170176
if (DELETE_INPUT_INDICES) {
171177
for (final Path inputBam : inputPaths) {

0 commit comments

Comments
 (0)