Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinlu3 committed Nov 1, 2024
1 parent 9bec7ac commit 90aed66
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ public Map<String, Set<EnsemblGene>> getCanonicalEnsemblGenesByChromosome(Refere
continue;
}
String chromosome = ensemblGene.getChromosome();

if (!chromosomeEnsemblGenesMap.containsKey(chromosome)) {
chromosomeEnsemblGenesMap.put(chromosome, new HashSet<>());
}

chromosomeEnsemblGenesMap.putIfAbsent(chromosome, new HashSet<>());
chromosomeEnsemblGenesMap.get(chromosome).add(ensemblGene);
}
}
Expand Down

0 comments on commit 90aed66

Please sign in to comment.