Upgrade mon to 0.11.0

This commit is contained in:
Paul Campbell 2018-07-20 07:26:51 +01:00
parent 297a952f43
commit 0a24a399aa
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@
<jgit.version>4.11.0.201803080745-r</jgit.version>
<junit.version>5.2.0</junit.version>
<assertj.version>3.10.0</assertj.version>
<mon.version>0.10.0</mon.version>
<mon.version>0.11.0</mon.version>
<mockito.version>2.18.3</mockito.version>
<java-semver.version>0.9.0</java-semver.version>
<conditional.version>0.5.0</conditional.version>

View file

@ -112,7 +112,7 @@ final class LocalGitDBImpl implements GitDB, LocalGitDB {
@Override
public Result<Maybe<GitDBBranch>> branch(final String name) {
return Result.maybeThen(
return Result.flatMapMaybe(
Result.of(() -> Maybe.maybe(repository.findRef(name))),
refMaybe -> Result.invert(refMaybe.map(branchInit)));
}