Skip to content

Commit bf18ee8

Browse files
authored
Remove unused DSL1 warning (#3671)
Signed-off-by: Ben Sherman <[email protected]>
1 parent 076c823 commit bf18ee8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

modules/nextflow/src/main/groovy/nextflow/script/BaseScript.groovy

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -174,22 +174,6 @@ abstract class BaseScript extends Script implements ExecutionContext {
174174
if( !entryFlow ) {
175175
if( meta.getLocalWorkflowNames() )
176176
throw new AbortOperationException("No entry workflow specified")
177-
if( meta.getLocalProcessNames() ) {
178-
final msg = """\
179-
=============================================================================
180-
= WARNING =
181-
= You are running this script using DSL2 syntax, however it does not =
182-
= contain any 'workflow' definition so there's nothing for Nextflow to run. =
183-
= =
184-
= If this script was written using Nextflow DSL1 syntax, please add the =
185-
= setting 'nextflow.enable.dsl=1' to the nextflow.config file or use the =
186-
= command-line option '-dsl1' when running the pipeline. =
187-
= =
188-
= More details at this link: https://www.nextflow.io/docs/latest/dsl2.html =
189-
=============================================================================
190-
""".stripIndent(true)
191-
throw new AbortOperationException(msg)
192-
}
193177
return result
194178
}
195179

0 commit comments

Comments
 (0)