Skip to content

Commit

Permalink
fix: flatten ext for Result
Browse files Browse the repository at this point in the history
  • Loading branch information
y9vad9 committed Dec 28, 2023
1 parent adc3f94 commit cc5f638
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal fun <T> Result<Result<T>>.flatten(): Result<T> {
if(value.isSuccess) {
Result.success(value.getOrThrow())
} else {
Result.failure(exceptionOrThrow())
Result.failure(value.exceptionOrThrow())
}
}
}
Expand Down

0 comments on commit cc5f638

Please sign in to comment.