Commit 5c50b65a authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Remove double add

parent f287b196
......@@ -37,7 +37,7 @@ object FastaUtils {
* @return sequence dict
*/
def getCachedDict(fastaFile: File): SAMSequenceDictionary = {
if (!dictCache.contains(fastaFile)) dictCache += fastaFile -> getDictFromFasta(fastaFile)
dictCache(fastaFile)
if (!dictCache.contains(fastaFile)) getDictFromFasta(fastaFile)
else dictCache(fastaFile)
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment