Skip to content

Commit 6b1a7f5

Browse files
author
Matt Smith
committed
sensor update
2 parents 2f9d818 + 6f077bc commit 6b1a7f5

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/main/java/com/godaddy/sonar/ruby/simplecovrcov/SimpleCovRcovJsonParserImpl.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,11 @@ public Map<String, CoverageMeasuresBuilder> parse(File file) throws IOException
4848
int lineNumber = i+1;
4949

5050
//if line is null, then that line was not covered, so set the value to 0
51-
if(line==null)
51+
if(line!=null)
5252
{
53-
intLine = 0;
54-
}
55-
//else take the long value and parse it as an int
56-
else
57-
{
5853
intLine = line.intValue();
59-
}
60-
fileCoverage.setHits(lineNumber, intLine);
54+
fileCoverage.setHits(lineNumber, intLine);
55+
}
6156
}
6257
coveredFiles.put(filePath, fileCoverage);
6358
}

0 commit comments

Comments
 (0)