diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-03-27 16:15:12 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-03-27 16:15:12 +0100 |
commit | 8b0becbe3ae16fef934d1e2066475b4a2ef52ea8 (patch) | |
tree | b305a8a6854857a766d1937216590ec1a42a47e8 /sonar-batch-protocol | |
parent | 3fff0e8918b8de03e413b357ed46e4adaa71d2ca (diff) | |
download | sonarqube-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.java | 3 |
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; } |