Why am I getting a [Some] object instead of a [String] object?
The Some object will not work as a string parameter in a method call.
config defreturns String, so I expect the type to be String.
But when I type "Hello" Scala, return it.
the code
def config(s: String) = Play.current.configuration.getString(s).toString()
Logger.info(config("recaptcha.publicKey"))
Logger.info("Hello")
Output
[info] application - Some(6LeDMdASAAAAAC4CFIDY-5M7NEZ_WnO0NO9CSdtj)
[info] application - Hello
source
share