diff --git a/pom.xml b/pom.xml index d2998e7..977664a 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 4.11.0.201803080745-r 5.2.0 3.10.0 - 0.10.0 + 0.11.0 2.18.3 0.9.0 0.5.0 diff --git a/src/main/java/net/kemitix/gitdb/impl/LocalGitDBImpl.java b/src/main/java/net/kemitix/gitdb/impl/LocalGitDBImpl.java index fba081d..6ac5c17 100644 --- a/src/main/java/net/kemitix/gitdb/impl/LocalGitDBImpl.java +++ b/src/main/java/net/kemitix/gitdb/impl/LocalGitDBImpl.java @@ -112,7 +112,7 @@ final class LocalGitDBImpl implements GitDB, LocalGitDB { @Override public Result> branch(final String name) { - return Result.maybeThen( + return Result.flatMapMaybe( Result.of(() -> Maybe.maybe(repository.findRef(name))), refMaybe -> Result.invert(refMaybe.map(branchInit))); }