Upgrade mon to 0.11.0
This commit is contained in:
parent
297a952f43
commit
0a24a399aa
2 changed files with 2 additions and 2 deletions
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue