Skip to content

Commit 0b3cba7

Browse files
micha91ewuerger
andauthored
refactor: apply changes from review
Co-authored-by: Ernst Würger <50786483+ewuerger@users.noreply.github.com>
1 parent 3ea343d commit 0b3cba7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

polarion_rest_api_client/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,12 +806,11 @@ def update_work_item(
806806
fields will stay untouched.
807807
"""
808808
assert work_item.id is not None
809-
work_item_type = work_item.type or oa_types.UNSET
810-
if work_item_type:
809+
if work_item.type:
811810
logger.warning(
812-
"You are attempting to change the type of Work Item %s to %s.",
811+
"Attempting to change the type of Work Item %s to %s.",
813812
work_item.id,
814-
work_item_type,
813+
work_item.type,
815814
)
816815

817816
response = patch_work_item.sync_detailed(

0 commit comments

Comments
 (0)