Skip to content

Commit

Permalink
Fixed ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
Edivad99 committed Sep 4, 2023
1 parent b880066 commit ea86662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mods/railcraft/util/routing/Router.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public interface Router {
Optional<Either<RoutingLogic, RoutingLogicException>> logicResult();

default Optional<RoutingLogic> logic() {
return this.logicResult().flatMap(Either::left);
return this.logicResult().flatMap(x -> x.left());
}

default Optional<RoutingLogicException> logicError() {
return this.logicResult().flatMap(Either::right);
return this.logicResult().flatMap(x -> x.right());
}
}

0 comments on commit ea86662

Please sign in to comment.