Commit 6af00416 authored by bow's avatar bow
Browse files

Use provided exts Set instead of zipExtensions

parent 90eaaf09
......@@ -90,11 +90,10 @@ class Flexiprep(val root: Configurable) extends QScript with SummaryQScript with
* @return Filename without compression extension.
*/
private def getUncompressedName(f: File, exts: Set[String] = zipExtensions): String =
zipExtensions
.foldLeft(f.toString) { case (fname, ext) =>
if (fname.toLowerCase.endsWith(ext)) fname.dropRight(ext.length)
else fname
}
exts.foldLeft(f.toString) { case (fname, ext) =>
if (fname.toLowerCase.endsWith(ext)) fname.dropRight(ext.length)
else fname
}
/** Function that's need to be executed before the script is accessed */
def init() {
......
Markdown is supported
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