refactor: simplify conditional logic
Command: `sourcery review --fix --enable de-morgan .`
This commit is contained in:
@@ -46,7 +46,7 @@ def execute():
|
||||
{"response_time": response_time, "resolution_time": resolution_time},
|
||||
)
|
||||
if priority.parenttype == "Service Level":
|
||||
if not priority.parent in priority_dict:
|
||||
if priority.parent not in priority_dict:
|
||||
priority_dict[priority.parent] = []
|
||||
priority_dict[priority.parent].append(priority)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user