Skip to content

Commit

Permalink
Remove superflous file load attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Oct 25, 2024
1 parent a51d2c6 commit 94e092b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,11 @@ private void loadGenomicCacheFiles() throws FileNotFoundException, IOException,
){
oos.writeObject(bucketIndex);
oos.flush();
oos.close();
}
}else {
}else if (new File(BUCKET_INDEX_BY_SAMPLE_FILE).exists()) {
try (ObjectInputStream objectInputStream = new ObjectInputStream(new GZIPInputStream(new FileInputStream(BUCKET_INDEX_BY_SAMPLE_FILE)));){
log.info("loading " + BUCKET_INDEX_BY_SAMPLE_FILE);
bucketIndex = (BucketIndexBySample) objectInputStream.readObject();
objectInputStream.close();
} catch (IOException | ClassNotFoundException e) {
log.error("an error occurred", e);
}
Expand Down

0 comments on commit 94e092b

Please sign in to comment.