[IMP] *: cleanup dead locals

This commit is contained in:
Xavier Morel 2025-02-03 15:13:49 +01:00
parent 9fa106f277
commit 981760430c
2 changed files with 0 additions and 2 deletions

View File

@ -242,7 +242,6 @@ class PullRequests(models.Model):
if p.state not in ('merged', 'closed')
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:
vals.setdefault('parent_id', False)
if with_parents and vals['parent_id'] is False:

View File

@ -257,7 +257,6 @@ class Batch(models.Model):
)
return
all_sources = [(p.source_id or p) 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):