Skip to content

Commit 74d8748

Browse files
Fix end line condition in JsonReport
1 parent 71ed54a commit 74d8748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/sonarlint/cli/report/JsonReport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void execute(String projectName, Date date, Collection<Trackable> trackab
7070
if (issue.getStartLine() != null) {
7171
lines.addProperty("begin", issue.getStartLine());
7272

73-
if (issue.getStartLine() != null) {
73+
if (issue.getEndLine() != null) {
7474
lines.addProperty("end", issue.getEndLine());
7575
} else {
7676
lines.addProperty("end", 1);

0 commit comments

Comments
 (0)