Skip to content

Commit 64e617c

Browse files
author
magnolia
committed
Fixed that URL does not contain the "empty"
Order to remove the hierarchy of unnecessary 'empty' from a URL. Because the generated HTML links does not work correctly.
1 parent adefc7f commit 64e617c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scalac-scoverage-plugin/src/main/scala/scoverage/report/ScoverageHtmlWriter.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ class ScoverageHtmlWriter(sourceDirectory: File, outputDir: File) {
215215
val path = fileRelativeToSource.getParent
216216
val value = fileRelativeToSource.getName
217217

218-
if (path.eq(null)) {
219-
"(empty)/" + value
220-
} else if (path.ne("")) {
218+
if (path.ne("")) {
221219
// (Normalise the pathSeparator to "/" in case we are running on Windows)
222220
fileRelativeToSource.toString.replace(File.separator, "/")
223221
} else {

0 commit comments

Comments
 (0)