From fd0109e490065237ffb21fe8ae8a679f5bacd05d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 8 Jul 2018 06:44:35 +0100 Subject: [PATCH] GirDBRepo fix syntax error --- src/main/java/net/kemitix/gitdb/impl/GitDBRepo.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/kemitix/gitdb/impl/GitDBRepo.java b/src/main/java/net/kemitix/gitdb/impl/GitDBRepo.java index 8bdedce..321c526 100644 --- a/src/main/java/net/kemitix/gitdb/impl/GitDBRepo.java +++ b/src/main/java/net/kemitix/gitdb/impl/GitDBRepo.java @@ -128,8 +128,7 @@ class GitDBRepo { final String userEmailAddress ) { return insertCommit(tree, message, userName, userEmailAddress, branchRef) - .flatMap(cid -> Result.of(() -> - headWriter.write(branchRef.getName(), cid))); + .flatMap(cid -> headWriter.write(branchRef.getName(), cid)); } /**