Fix none was Lowercase fixed for right Option Type

This commit is contained in:
denon1 2023-04-01 02:07:36 +02:00
parent 376f35f08f
commit 645342ba2f

View File

@ -103,7 +103,7 @@ object KnownForSources {
.from(TextLine(textFile))
.flatMap { str =>
str match {
case s"#$_" => none
case s"#$_" => None
case _ => try {
val tokens = str.trim.split("\\s+")
val userId = tokens(0).toLong
@ -115,7 +115,7 @@ object KnownForSources {
r += newEntry
}).result() match {
case (res) if res.nonEmpty => Some((userId, res.result()))
_ => none
_ => None
}
}
catch {