diff --git a/modules/nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy b/modules/nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy index 940678b6d6..38b4ba4782 100644 --- a/modules/nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy @@ -790,7 +790,7 @@ class TaskRun implements Cloneable { * @param body A {@code BodyDef} object instance */ void resolve(BodyDef body) { - (processor.session.stubRun && config.getStubBlock()) + processor.session.stubRun && config.getStubBlock() ? resolveStub(config.getStubBlock()) : resolveBody(body) }