removing unnecessary if check

This commit is contained in:
mhoecke1
2024-08-23 10:57:58 -04:00
parent 2beefab89a
commit 2a9e3ee1ef

View File

@ -144,7 +144,7 @@ class BitbucketServerProvider(GitProvider):
for commit in source_commits_list:
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 guaranteed_common_ancestor