Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Add default string as positional argument to validateParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed Oct 2, 2023
1 parent 0c110a8 commit 4da106f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ class SchemaValidator extends PluginExtensionPoint {
*/
@Function
void validateParameters(
String schemaFilename,
Map options = null
) {

def Map params = initialiseExpectedParams(session.params)
def String baseDir = session.baseDir
def String schemaFilename = options?.containsKey('parameters_schema') ? options.parameters_schema as String : 'nextflow_schema.json'
def Boolean useMonochromeLogs = options?.containsKey('monochrome_logs') ? options.monochrome_logs as Boolean : params.monochrome_logs ? params.monochrome_logs as Boolean : false
log.debug "Starting parameters validation"

Expand Down

0 comments on commit 4da106f

Please sign in to comment.