aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-04-15 14:19:03 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-04-24 10:20:15 +0200
commit092b18233548f6b71e02341a895146f6f0fc685c (patch)
treeb2ff3b3a8732b3c96952d3e6973668bfd6b1481c
parent55cb3d641b2390c035539a9d33f91b4ab5b53c0a (diff)
downloadsonarqube-092b18233548f6b71e02341a895146f6f0fc685c.tar.gz
sonarqube-092b18233548f6b71e02341a895146f6f0fc685c.zip
Fix some quality flaws
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java
index e398cd6b98b..bb82329185d 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/ComponentIndexer.java
@@ -78,10 +78,8 @@ public class ComponentIndexer implements BatchComponent {
} else {
sonarFile.setDeprecatedKey(pathFromSourceDir);
}
- if (sonarFile != null) {
- sonarIndex.index(sonarFile);
- importSources(fs, shouldImportSource, inputFile, sonarFile);
- }
+ sonarIndex.index(sonarFile);
+ importSources(fs, shouldImportSource, inputFile, sonarFile);
}
}