diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2018-02-12 22:19:02 -0500 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2018-02-12 22:19:02 -0500 |
| commit | 32f5da54c628408c96db09d279f3a7ef44b3bd19 (patch) | |
| tree | ef56d04518b8791409ed65db58c304b74b23a01b /base/src/main/java/bjc/utils/data/Either.java | |
| parent | 49cd96c4c5bbb883c0c5c10d7916ad2e93ff2df0 (diff) | |
Update
Diffstat (limited to 'base/src/main/java/bjc/utils/data/Either.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/data/Either.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/src/main/java/bjc/utils/data/Either.java b/base/src/main/java/bjc/utils/data/Either.java index 2b64feb..20a06f5 100644 --- a/base/src/main/java/bjc/utils/data/Either.java +++ b/base/src/main/java/bjc/utils/data/Either.java @@ -119,13 +119,13 @@ public class Either<LeftType, RightType> implements IPair<LeftType, RightType> { return new Either<>(cLeft, null); }); - } else { - return otherPair.bind((otherLeft, otherRight) -> { - CombinedRight cRight = rightCombiner.apply(rightVal, otherRight); - - return new Either<>(null, cRight); - }); } + + return otherPair.bind((otherLeft, otherRight) -> { + CombinedRight cRight = rightCombiner.apply(rightVal, otherRight); + + return new Either<>(null, cRight); + }); } @Override |
