Simplify pop

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Petr Kalis 2025-10-23 11:26:09 +02:00 committed by GitHub
parent 87f1d458b8
commit c50406a279
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1225,8 +1225,8 @@ class ProjectPushItemProcess:
value_to_update = formatting_data.get(context_key)
if value_to_update:
repre_context[context_key] = value_to_update
if "task" not in formatting_data and "task" in repre_context:
repre_context.pop("task")
if "task" not in formatting_data:
repre_context.pop("task", None)
return repre_context