Skip to content

Commit ad6ccc1

Browse files
committed
Fix spacing
1 parent 826af16 commit ad6ccc1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

main.nf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ workflow.onComplete {
15351535
// Set up the e-mail variables
15361536
def subject = "[nf-core/chipseq] Successful: $workflow.runName"
15371537
if (!workflow.success) {
1538-
subject = "[nf-core/chipseq] FAILED: $workflow.runName"
1538+
subject = "[nf-core/chipseq] FAILED: $workflow.runName"
15391539
}
15401540
def email_fields = [:]
15411541
email_fields['version'] = workflow.manifest.version
@@ -1601,21 +1601,21 @@ workflow.onComplete {
16011601
// Send the HTML e-mail
16021602
if (email_address) {
16031603
try {
1604-
if (params.plaintext_email) { throw GroovyException('Send plaintext e-mail, not HTML') }
1605-
// Try to send HTML e-mail using sendmail
1606-
[ 'sendmail', '-t' ].execute() << sendmail_html
1607-
log.info "[nf-core/chipseq] Sent summary e-mail to $email_address (sendmail)"
1604+
if (params.plaintext_email) { throw GroovyException('Send plaintext e-mail, not HTML') }
1605+
// Try to send HTML e-mail using sendmail
1606+
[ 'sendmail', '-t' ].execute() << sendmail_html
1607+
log.info "[nf-core/chipseq] Sent summary e-mail to $email_address (sendmail)"
16081608
} catch (all) {
1609-
// Catch failures and try with plaintext
1610-
[ 'mail', '-s', subject, email_address ].execute() << email_txt
1611-
log.info "[nf-core/chipseq] Sent summary e-mail to $email_address (mail)"
1609+
// Catch failures and try with plaintext
1610+
[ 'mail', '-s', subject, email_address ].execute() << email_txt
1611+
log.info "[nf-core/chipseq] Sent summary e-mail to $email_address (mail)"
16121612
}
16131613
}
16141614

16151615
// Write summary e-mail HTML to a file
16161616
def output_d = new File("${params.outdir}/pipeline_info/")
16171617
if (!output_d.exists()) {
1618-
output_d.mkdirs()
1618+
output_d.mkdirs()
16191619
}
16201620
def output_hf = new File(output_d, "pipeline_report.html")
16211621
output_hf.withWriter { w -> w << email_html }
@@ -1628,9 +1628,9 @@ workflow.onComplete {
16281628
c_red = params.monochrome_logs ? '' : "\033[0;31m";
16291629

16301630
if (workflow.stats.ignoredCount > 0 && workflow.success) {
1631-
log.info "${c_purple}Warning, pipeline completed, but with errored process(es) ${c_reset}"
1632-
log.info "${c_red}Number of ignored errored process(es) : ${workflow.stats.ignoredCount} ${c_reset}"
1633-
log.info "${c_green}Number of successfully ran process(es) : ${workflow.stats.succeedCount} ${c_reset}"
1631+
log.info "${c_purple}Warning, pipeline completed, but with errored process(es) ${c_reset}"
1632+
log.info "${c_red}Number of ignored errored process(es) : ${workflow.stats.ignoredCount} ${c_reset}"
1633+
log.info "${c_green}Number of successfully ran process(es) : ${workflow.stats.succeedCount} ${c_reset}"
16341634
}
16351635

16361636
if (workflow.success) {

0 commit comments

Comments
 (0)