def checkJsonPayload(json: JValue)(request: HttpServletRequest): Option[CodedError] = json match {
case JNothing => Some(codedError)
case _ => None
}
This has a warning as I don’t use the ‘request’ parameter, but wait!; I remember reading that I can replace request with ‘_’. However, it doesn’t compile.
What am I doing wrong?