Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Sep 6, 2021
1 parent fe72965 commit 476952d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cwltool/pathmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,14 @@ def setup(self, referenced_files: List[CWLObjectType], basedir: str) -> None:
copy=cast(bool, fob.get("writable", False)),
staged=True,
)
targets = {} # type: Dict[Text, Text]
for k,v in self._pathmap.items():

targets: Dict[str, str] = {}
for k, v in self._pathmap.items():
if v.target in targets:
raise validate.ValidationException("Name conflict: both %s and %s have been assigned to target %s" % (k, targets[v.target], v.target))
raise ValidationException(
"Name conflict: both %s and %s have been assigned to target %s"
% (k, targets[v.target], v.target)
)
if v.type != "Directory":
targets[v.target] = k

Expand Down

0 comments on commit 476952d

Please sign in to comment.