Skip to content

Commit 12c7b52

Browse files
committed
misc
1 parent 906827d commit 12c7b52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwl_utils/etools_to_clt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def etool_to_cltool(etool: cwl.ExpressionTool, expressionLib: Optional[List[str]
115115
contents +="""
116116
var ret = function(){"""+etool.expression.strip()[2:-1]+"""}();
117117
process.stdout.write(JSON.stringify(ret));"""
118-
content = escape_expression_field(contents)
118+
contents = escape_expression_field(contents)
119119
listing = [cwl.Dirent("expression.js", contents, writable=None)]
120120
iwdr = cwl.InitialWorkDirRequirement(listing)
121121
containerReq = cwl.DockerRequirement("node:slim", None, None, None, None, None)
@@ -167,7 +167,7 @@ def load_step(step: cwl.WorkflowStep, replace_etool=False) -> bool:
167167
return modified
168168

169169
def generate_etool_from_expr(expr: str,
170-
target: Union[cwl.Parameter, cwl.CommandInputParameter, cwl.InputParameter],
170+
target: Union[cwl.CommandInputParameter, cwl.InputParameter],
171171
no_inputs=False,
172172
self_type: Optional[Union[cwl.InputParameter, cwl.CommandInputParameter]] = None, # if the "self" input should be a different type than the "result" output
173173
extra_processes: Optional[Sequence[Union[cwl.Workflow, cwl.WorkflowStep, cwl.CommandLineTool]]] = None

0 commit comments

Comments
 (0)