fix copilot suggestion

This commit is contained in:
Matthias De Smet 2022-04-28 10:05:07 +02:00
parent 2b29ff5883
commit 8fb8199f31

View file

@ -22,10 +22,10 @@ workflow BAM_QC_PICARD {
ch_versions = ch_versions.mix(PICARD_COLLECTMULTIPLEMETRICS.out.versions.first()) ch_versions = ch_versions.mix(PICARD_COLLECTMULTIPLEMETRICS.out.versions.first())
if (!ch_bait_interval.isEmpty() || !ch_target_interval.isEmpty()) { if (!ch_bait_interval.isEmpty() || !ch_target_interval.isEmpty()) {
if (ch_bait_interval.isEmpty()) { if (ch_bait_interval.isEmpty()) {
throw new Error("Bait interval channel is empty") log.error("Bait interval channel is empty")
} }
if (ch_target_interval.isEmpty()) { if (ch_target_interval.isEmpty()) {
throw new Error("Target interval channel is empty") log.error("Target interval channel is empty")
} }
PICARD_COLLECTHSMETRICS( ch_bam_bai, ch_fasta, ch_bait_interval, ch_target_interval ) PICARD_COLLECTHSMETRICS( ch_bam_bai, ch_fasta, ch_bait_interval, ch_target_interval )
ch_versions = ch_versions.mix(PICARD_COLLECTHSMETRICS.out.versions.first()) ch_versions = ch_versions.mix(PICARD_COLLECTHSMETRICS.out.versions.first())