Skip to content

Commit 158b6bf

Browse files
committed
Clarify
1 parent 5c03ea5 commit 158b6bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/main/java/io/cucumber/jsonformatter/JsonReportWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ private JvmDocString createJvmDocString(PickleDocString docString, Step step) {
480480
return new JvmDocString(
481481
step.getDocString()
482482
.map(DocString::getLocation)
483-
.map(Location::getLine)
484483
// Can't happen. Pickle doc strings are made from step doc strings
485-
.orElseGet(() -> step.getLocation().getLine()),
484+
.orElseGet(step::getLocation)
485+
.getLine(),
486486
docString.getContent(),
487487
docString.getMediaType().orElse(null));
488488
}

0 commit comments

Comments
 (0)