Skip to content

Commit 8a438f2

Browse files
committed
Fixed != comparison
By linter: comparing values of types Char and String using `!=' will always yield true
1 parent ea1373b commit 8a438f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/dotc/tests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class tests extends CompilerTest {
175175
val stdlibFiles = Source.fromFile("./test/dotc/scala-collections.whitelist", "UTF8").getLines()
176176
.map(_.trim) // allow identation
177177
.filter(!_.startsWith("#")) // allow comment lines prefixed by #
178-
.map(_.takeWhile(_ != "#").trim) // allow comments in the end of line
178+
.map(_.takeWhile(_ != '#').trim) // allow comments in the end of line
179179
.filter(_.nonEmpty)
180180
.toList
181181

0 commit comments

Comments
 (0)