Skip to content

Commit

Permalink
Merge pull request #1100 from jpfeuffer/fix/schemaVal_emptyDefaultStr
Browse files Browse the repository at this point in the history
[FIX] Schema validation for empty string defaults
  • Loading branch information
ewels authored Nov 16, 2021
2 parents 249aead + 0774214 commit f58077e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nf_core/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def sanitise_param_default(self, param):

# For everything else, an empty string is an empty string
if isinstance(param["default"], str) and param["default"].strip() == "":
return ""
param["default"] = ""
return param

# Integers
if param["type"] == "integer":
Expand Down

0 comments on commit f58077e

Please sign in to comment.