Skip to content
Snippets Groups Projects
Commit 47decd35 authored by bow's avatar bow
Browse files

Remove redundant validation

parent 4d296e06
No related branches found
No related tags found
No related merge requests found
......@@ -215,11 +215,7 @@ object ExtractAlignedFastq extends ToolCommand {
""".stripMargin)
checkConfig { c =>
if (!c.inputBam.exists)
failure("Input BAM file not found")
else if (!c.inputFastq1.exists)
failure("Input FASTQ file 1 not found")
else if (c.inputFastq2 != null && c.outputFastq2 == null)
if (c.inputFastq2 != null && c.outputFastq2 == null)
failure("Missing output FASTQ file 2")
else if (c.inputFastq2 == null && c.outputFastq2 != null)
failure("Missing input FASTQ file 2")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment