mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] *: cleanup dead locals
This commit is contained in:
parent
9fa106f277
commit
981760430c
@ -242,7 +242,6 @@ class PullRequests(models.Model):
|
|||||||
if p.state not in ('merged', 'closed')
|
if p.state not in ('merged', 'closed')
|
||||||
if p.parent_id
|
if p.parent_id
|
||||||
}
|
}
|
||||||
closed_fp = self.filtered(lambda p: p.state == 'closed' and p.source_id)
|
|
||||||
if newhead and not self.env.context.get('ignore_head_update') and newhead != self.head:
|
if newhead and not self.env.context.get('ignore_head_update') and newhead != self.head:
|
||||||
vals.setdefault('parent_id', False)
|
vals.setdefault('parent_id', False)
|
||||||
if with_parents and vals['parent_id'] is False:
|
if with_parents and vals['parent_id'] is False:
|
||||||
|
@ -257,7 +257,6 @@ class Batch(models.Model):
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
all_sources = [(p.source_id or p) for p in self.prs]
|
|
||||||
all_targets = [p._find_next_target() for p in self.prs]
|
all_targets = [p._find_next_target() for p in self.prs]
|
||||||
|
|
||||||
if all(t is None for t in all_targets):
|
if all(t is None for t in all_targets):
|
||||||
|
Loading…
Reference in New Issue
Block a user