aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-06-09 14:10:47 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-06-09 14:10:47 +0200
commit6b35da5b5dc82f89d62109a2556ffdc520e7e08e (patch)
tree92845955cba88764dac683affb1ad4c60a565205 /server
parent5aa9d2cd1f9d4bbab66f788f0817121698bb14f5 (diff)
downloadsonarqube-6b35da5b5dc82f89d62109a2556ffdc520e7e08e.tar.gz
sonarqube-6b35da5b5dc82f89d62109a2556ffdc520e7e08e.zip
Fix quality flaws
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/AddProjectCreatorToTemplateAction.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/AddProjectCreatorToTemplateAction.java b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/AddProjectCreatorToTemplateAction.java
index 2956efe5f37..dccc5589008 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/AddProjectCreatorToTemplateAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/permission/ws/template/AddProjectCreatorToTemplateAction.java
@@ -80,8 +80,8 @@ public class AddProjectCreatorToTemplateAction implements PermissionsWsAction {
DbSession dbSession = dbClient.openSession(false);
try {
PermissionTemplateDto template = dependenciesFinder.getTemplate(dbSession, WsTemplateRef.newTemplateRef(request.getTemplateId(), request.getTemplateName()));
- Optional<PermissionTemplateCharacteristicDto> templatePermission = dbClient.permissionTemplateCharacteristicDao().selectByPermissionAndTemplateId(dbSession, request.getPermission(),
- template.getId());
+ Optional<PermissionTemplateCharacteristicDto> templatePermission = dbClient.permissionTemplateCharacteristicDao()
+ .selectByPermissionAndTemplateId(dbSession, request.getPermission(), template.getId());
if (templatePermission.isPresent()) {
updateTemplatePermission(dbSession, templatePermission.get());
} else {