gabrielfv
10/21/2018, 3:11 PMEither
with the correct types?
.findByMonth(month, year)
.map { report -> eitherTry { report ?: throw NoDataException("No report found") } }
.map { either -> either.mapLeft { it as NoDataException } }
eitherTry
, instead of directly exposing the correct types, require me to map-cast them