Skip to content

Commit

Permalink
SLE-959: Fix SQ issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thahnen committed Oct 7, 2024
1 parent fc3bd3e commit 51c5921
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void didSynchronizeConfigurationScopes(Set<String> configurationScopeIds)
public boolean matchProjectBranch(String configurationScopeId, String branchNameToMatch, SonarLintCancelChecker cancelChecker)
throws ConfigScopeNotFoundException {
var project = SonarLintUtils.resolveProject(configurationScopeId);
return VcsService.matchSonarProjectBranch(project, branchNameToMatch, Set.of(branchNameToMatch)) == branchNameToMatch;
return branchNameToMatch.equals(VcsService.matchSonarProjectBranch(project, branchNameToMatch, Set.of(branchNameToMatch)));
}

@Override
Expand Down

0 comments on commit 51c5921

Please sign in to comment.