Skip to content

Commit 3b37cf3

Browse files
committed
load_tool.py: Remove condition related to draft-2
1 parent 0b68ef8 commit 3b37cf3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cwltool/load_tool.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ def validate_document(document_loader, # type: Loader
194194
raise ValidationException("Workflow must be a dict or list.")
195195

196196
if not metadata:
197-
if not isinstance(processobj, dict):
198-
raise ValidationException("Draft-2 workflows must be a dict.")
199197
metadata = cast(CommentedMap, cmap({"$namespaces": processobj.get("$namespaces", {}),
200198
"$schemas": processobj.get("$schemas", []),
201199
"cwlVersion": processobj["cwlVersion"]},

0 commit comments

Comments
 (0)