]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaw
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 7 Jan 2015 08:24:37 +0000 (09:24 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 7 Jan 2015 08:26:38 +0000 (09:26 +0100)
server/sonar-server/src/main/java/org/sonar/server/component/db/ComponentDao.java
server/sonar-server/src/main/java/org/sonar/server/user/UserUpdater.java

index d6693eae1c782a3ed8e46277244c900b0717859c..df4ef97c70d6c6d26da16737213c0476bc077bc2 100644 (file)
@@ -150,7 +150,6 @@ public class ComponentDao extends BaseDao<ComponentMapper, ComponentDto, String>
 
   @Override
   protected void doDeleteByKey(DbSession session, String key) {
-    // TODO shouldn't we need to also delete snapshots ?
     mapper(session).deleteByKey(key);
   }
 
index 63aefc3f2d6839e36e571db4449155bc7f0eaaf9..8542278a95145ad4b7ef1edc5d23ccd91dbd4ff2 100644 (file)
@@ -188,7 +188,7 @@ public class UserUpdater implements ServerComponent {
     if (updateUser.isScmAccountsChanged()) {
       List<String> scmAccounts = updateUser.scmAccounts();
       if (scmAccounts != null && !scmAccounts.isEmpty()) {
-        scmAccounts = sanitizeScmAccounts(updateUser.scmAccounts());
+        scmAccounts = sanitizeScmAccounts(scmAccounts);
         validateScmAccounts(dbSession, scmAccounts, userDto.getLogin(), email != null ? email : userDto.getEmail(), userDto, messages);
         userDto.setScmAccounts(convertScmAccountsToCsv(scmAccounts));
       } else {