Fix infer type

This commit is contained in:
Mikołaj Pich 2020-03-02 21:03:07 +01:00
parent 1f7fab1740
commit b3cdb3f560
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA

View file

@ -478,11 +478,11 @@ class Sdk {
// if there is more than one lucky number // if there is more than one lucky number
if (numbers.size > 1) { if (numbers.size > 1) {
return@flatMap Maybe.error(VulcanException("More than one mismatched lucky number: $numbers")) return@flatMap Maybe.error<LuckyNumber>(VulcanException("More than one mismatched lucky number: $numbers"))
} }
// else // else
Maybe.empty() Maybe.empty<LuckyNumber>()
}.map { it.number } }.map { it.number }
} }