mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 12:50:38 +08:00
removing unnecessary if check
This commit is contained in:
@ -144,7 +144,7 @@ class BitbucketServerProvider(GitProvider):
|
|||||||
|
|
||||||
for commit in source_commits_list:
|
for commit in source_commits_list:
|
||||||
for parent_commit in commit['parents']:
|
for parent_commit in commit['parents']:
|
||||||
if commit['id'] in destination_commit_hashes or parent_commit['id'] in destination_commit_hashes:
|
if parent_commit['id'] in destination_commit_hashes:
|
||||||
return parent_commit['id']
|
return parent_commit['id']
|
||||||
|
|
||||||
return guaranteed_common_ancestor
|
return guaranteed_common_ancestor
|
||||||
|
Reference in New Issue
Block a user