aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-03-27 16:15:12 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-03-27 16:15:12 +0100
commit8b0becbe3ae16fef934d1e2066475b4a2ef52ea8 (patch)
treeb305a8a6854857a766d1937216590ec1a42a47e8 /sonar-batch-protocol
parent3fff0e8918b8de03e413b357ed46e4adaa71d2ca (diff)
downloadsonarqube-8b0becbe3ae16fef934d1e2066475b4a2ef52ea8.tar.gz
sonarqube-8b0becbe3ae16fef934d1e2066475b4a2ef52ea8.zip
fix quality flaws
Diffstat (limited to 'sonar-batch-protocol')
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java
index 7b0f8f6bfaa..059f842d838 100644
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java
+++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/output/BatchReportReader.java
@@ -57,8 +57,7 @@ public class BatchReportReader {
public BatchReport.Scm readComponentScm(int componentRef) {
File file = fileStructure.fileFor(FileStructure.Domain.SCM, componentRef);
if (file.exists() && file.isFile()) {
- BatchReport.Scm scm = ProtobufUtil.readFile(file, BatchReport.Scm.PARSER);
- return scm;
+ return ProtobufUtil.readFile(file, BatchReport.Scm.PARSER);
}
return null;
}