Replacing use of == null and != null for Scala

This commit is contained in:
Viktor Klang 2010-09-28 11:21:05 +02:00
parent 8bedc2b326
commit b0e99413b7
25 changed files with 59 additions and 63 deletions

View file

@ -207,7 +207,7 @@ trait AuthenticationActor[C <: Credentials] extends Actor {
//Turns the aforementioned header value into an option
def authOption(r: Req): Option[String] = {
val a = auth(r)
if (a != null && a.length > 0) Some(a) else None
if ((a ne null) && a.length > 0) Some(a) else None
}
}