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

More concise code

parent 52d84e3c
......@@ -32,5 +32,5 @@ object SamtoolsFlagstat {
return apply(root, input, new File(swapExtension(input.getAbsolutePath)))
}
private def swapExtension(inputFile: String) = inputFile.substring(0, inputFile.lastIndexOf(".bam")) + ".flagstat"
private def swapExtension(inputFile: String) = inputFile.stripSuffix(".bam") + ".flagstat"
}
\ No newline at end of file
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