Skip to content

Commit 210d077

Browse files
committed
New feature: Either.cond
1 parent c246da8 commit 210d077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vavr/src/main/java/io/vavr/control/Either.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ default Validation<L, R> toValidation() {
654654

655655
@Override
656656
default Try<R> toTry() {
657-
return isRight()
658-
? Try.success(get())
657+
return isRight()
658+
? Try.success(get())
659659
: Try.failure(new Failure(getLeft()));
660660
}
661661

0 commit comments

Comments
 (0)