mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Simplify pop
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
87f1d458b8
commit
c50406a279
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue