Fix infer type
This commit is contained in:
parent
1f7fab1740
commit
b3cdb3f560
1 changed files with 2 additions and 2 deletions
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue