KeyRemover: minor renaming of lambda variable
This commit is contained in:
parent
c75204c676
commit
a20c5b064e
1 changed files with 5 additions and 5 deletions
|
@ -56,17 +56,17 @@ class KeyRemover {
|
|||
final AtomicBoolean removed = new AtomicBoolean(false);
|
||||
return new GitTreeReader(repository)
|
||||
.entries(branchRef)
|
||||
.thenWith(s -> addOthersToTree(key, treeFormatter, removed, s))
|
||||
.flatMap(s -> insertTree(treeFormatter))
|
||||
.maybe(oi -> removed.get());
|
||||
.thenWith(entries -> addOthersToTree(key, treeFormatter, removed, entries))
|
||||
.flatMap(x -> insertTree(treeFormatter))
|
||||
.maybe(x -> removed.get());
|
||||
}
|
||||
|
||||
private static WithResultContinuation<Stream<NamedRevBlob>> addOthersToTree(
|
||||
final String key,
|
||||
final TreeFormatter treeFormatter,
|
||||
final AtomicBoolean removed,
|
||||
final Stream<NamedRevBlob> s) {
|
||||
return () -> s
|
||||
final Stream<NamedRevBlob> entryStream) {
|
||||
return () -> entryStream
|
||||
.peek(flagIfFound(key, removed))
|
||||
.filter(isNotKey(key))
|
||||
.forEach(addToTree(treeFormatter));
|
||||
|
|
Loading…
Reference in a new issue