8000 Remove inline if to test doc-generator · illusional/python-cwlgen@f6cbed0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6cbed0

Browse files
committed
Remove inline if to test doc-generator
1 parent e539108 commit f6cbed0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cwlgen/elements.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def parse_type(param_type, requires_type=False):
3737
optional = param_type[-1] == "?"
3838
if optional:
3939
_LOGGER.debug("Detected {param_type} to be optional".format(param_type=param_type))
40-
cwltype = param_type[:-1] if optional else param_type
40+
cwltype = param_type[:-1]
41+
else:
42+
cwltype = param_type
43+
# cwltype = param_type[:-1] if optional else param_type
4144

4245
# check for arrays
4346
if len(cwltype) > 2 and cwltype[-2:] == "[]":

0 commit comments

Comments
 (0)
0