From 2a9e3ee1ef1ab2ea22ef430e1d9955ca85700fb2 Mon Sep 17 00:00:00 2001 From: mhoecke1 Date: Fri, 23 Aug 2024 10:57:58 -0400 Subject: [PATCH] removing unnecessary if check --- pr_agent/git_providers/bitbucket_server_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/git_providers/bitbucket_server_provider.py b/pr_agent/git_providers/bitbucket_server_provider.py index f7e2f92b..dcdedadd 100644 --- a/pr_agent/git_providers/bitbucket_server_provider.py +++ b/pr_agent/git_providers/bitbucket_server_provider.py @@ -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