2016-11-14

I have below code which method returns Future[Account] where Account is the case class object. Below is the code

When the accountFutOpt is Some(account) the result is Success(Account) as expected. But when the accountFutOpt is None, the output of the method is List as below.

List() instead of Future should throw compilation error correct?

Show more