Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
magnolia committed Feb 14, 2015
commit 64e617c37f93effcfdcc5a610a587ac79128ce8f
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ class ScoverageHtmlWriter(sourceDirectory: File, outputDir: File) {
val path = fileRelativeToSource.getParent
val value = fileRelativeToSource.getName

if (path.eq(null)) {
"(empty)/" + value
} else if (path.ne("")) {
if (path.ne("")) {
// (Normalise the pathSeparator to "/" in case we are running on Windows)
fileRelativeToSource.toString.replace(File.separator, "/")
} else {
Expand Down