aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-webapi
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2022-10-06 10:40:32 +0200
committersonartech <sonartech@sonarsource.com>2022-10-12 20:03:44 +0000
commit1dcc2dc85ebd2641f9c22a6d5d316ee1f1a5e883 (patch)
treeb75d5fcbccdef63f846ad154a0816de755bfcb76 /server/sonar-webserver-webapi
parent50b12df3787d87958fcef7fbf8c00598b141f1ee (diff)
downloadsonarqube-1dcc2dc85ebd2641f9c22a6d5d316ee1f1a5e883.tar.gz
sonarqube-1dcc2dc85ebd2641f9c22a6d5d316ee1f1a5e883.zip
SONAR-17352 Refactor component keys to not include branch suffix
Diffstat (limited to 'server/sonar-webserver-webapi')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/ShowAction.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/ShowAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/ShowAction.java
index ca42f019916..f7525e9e56d 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/ShowAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/component/ws/ShowAction.java
@@ -157,7 +157,7 @@ public class ShowAction implements ComponentsWsAction {
String branch = dbClient.branchDao().selectByUuid(dbSession, component.getCopyComponentUuid())
.map(BranchDto::getKey)
.orElse(null);
- componentDtoToWsComponent(component, parentProject.orElse(null), lastAnalysis, branch, null)
+ return componentDtoToWsComponent(component, parentProject.orElse(null), lastAnalysis, branch, null)
.setNeedIssueSync(needIssueSync);
}
return componentDtoToWsComponent(component, parentProject.orElse(null), lastAnalysis, request.branch, request.pullRequest)