Skip to content

Commit 2a9e3ee

Browse files
author
mhoecke1
committed
removing unnecessary if check
1 parent 2beefab commit 2a9e3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pr_agent/git_providers/bitbucket_server_provider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def get_best_common_ancestor(source_commits_list, destination_commits_list, guar
144144

145145
for commit in source_commits_list:
146146
for parent_commit in commit['parents']:
147-
if commit['id'] in destination_commit_hashes or parent_commit['id'] in destination_commit_hashes:
147+
if parent_commit['id'] in destination_commit_hashes:
148148
return parent_commit['id']
149149

150150
return guaranteed_common_ancestor

0 commit comments

Comments
 (0)