Skip to content

Commit

Permalink
fix: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: micha91 <[email protected]>
  • Loading branch information
ewuerger and micha91 committed Sep 28, 2023
1 parent 91996a4 commit f2080c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions capella2polarion/elements/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,9 @@ def post_work_items(ctx: dict[str, t.Any]) -> None:
ctx
The context for the workitem operation to be processed.
"""
work_items = [
wi
for wi in ctx["WORK_ITEMS"].values()
if wi.uuid_capella not in ctx["POLARION_ID_MAP"]
]
for work_item in work_items:
for work_item in ctx["WORK_ITEMS"].values():
if wi.uuid_capella in ctx["POLARION_ID_MAP"]:
continue
assert work_item is not None
logger.info("Create work item for %r...", work_item.title)
if work_items:
Expand Down
1 change: 0 additions & 1 deletion capella2polarion/elements/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class Condition(t.TypedDict):
uuid_capella: str | None
preCondition: Condition | None
postCondition: Condition | None
checksum: str | None


def element(
Expand Down

0 comments on commit f2080c3

Please sign in to comment.