Delete redundant code.
_issue_to_pull_request(body) got the pr_body for us (with logging for failures, then we did it again in the calling context. We should only need to fetch this data once and doing it with logging is preferable. Remove the followup code that is redundant and rely on _issue_to_pull_request(body) instead. Change-Id: Iaa1eb4c4d992249504be02efd50c1192fcf99e49
This commit is contained in:
parent
c2fe7713fe
commit
8414e65e08
|
@ -318,9 +318,6 @@ class GithubEventConnector(threading.Thread):
|
|||
# Do not process non-PR issue comment
|
||||
return
|
||||
pr_body = self._issue_to_pull_request(body)
|
||||
number = body.get('issue').get('number')
|
||||
project_name = body.get('repository').get('full_name')
|
||||
pr_body = self.connection.getPull(project_name, number)
|
||||
if pr_body is None:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue