fix: Remove parens

This commit is contained in:
Faris Ansari 2019-05-02 20:14:16 +05:30 committed by GitHub
parent ffd4990a70
commit b9dc4687dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,9 +164,9 @@ class Task(NestedSet):
throw(_("Child Task exists for this Task. You can not delete this Task."))
if self.project:
tasks = (frappe.get_doc('Project', self.project)).tasks
tasks = frappe.get_doc('Project', self.project).tasks
for task in tasks:
if (task.get('task_id') == self.name):
if task.get('task_id') == self.name:
frappe.delete_doc('Project Task', task.name)