Replacing use of == null and != null for Scala
This commit is contained in:
parent
8bedc2b326
commit
b0e99413b7
25 changed files with 59 additions and 63 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue