Skip to content

Commit

Permalink
rename id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
giannisdoukas committed Jun 9, 2020
1 parent 5fb086c commit 41e7f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cwlkernel/cwlrepository/cwlrepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def register_tools(self, *args):
for tool in args:
self.register_tool(tool)

def get_by_id(self, id: str) -> Optional[WorkflowComponent]:
comp = self._registry.get(id, None)
def get_by_id(self, tool_id: str) -> Optional[WorkflowComponent]:
comp = self._registry.get(tool_id, None)
return comp[0] if comp is not None else None

def __iter__(self) -> Iterator[WorkflowComponent]:
Expand Down

0 comments on commit 41e7f65

Please sign in to comment.