Skip to content

Commit f9a573d

Browse files
Fix windows fix for coverage tests
1 parent 0529bf8 commit f9a573d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/dotc/coverage/CoverageTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CoverageTests:
3636
def fixWindowsPaths(lines: Buffer[String]): Buffer[String] =
3737
val separator = java.io.File.separatorChar
3838
if separator != '/' then
39-
lines.map(_.replace("\\" + separator, "/")) // escape the separator
39+
lines.map(_.replace(separator, '/'))
4040
else
4141
lines
4242
end fixWindowsPaths

0 commit comments

Comments
 (0)