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);
|
final AtomicBoolean removed = new AtomicBoolean(false);
|
||||||
return new GitTreeReader(repository)
|
return new GitTreeReader(repository)
|
||||||
.entries(branchRef)
|
.entries(branchRef)
|
||||||
.thenWith(s -> addOthersToTree(key, treeFormatter, removed, s))
|
.thenWith(entries -> addOthersToTree(key, treeFormatter, removed, entries))
|
||||||
.flatMap(s -> insertTree(treeFormatter))
|
.flatMap(x -> insertTree(treeFormatter))
|
||||||
.maybe(oi -> removed.get());
|
.maybe(x -> removed.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static WithResultContinuation<Stream<NamedRevBlob>> addOthersToTree(
|
private static WithResultContinuation<Stream<NamedRevBlob>> addOthersToTree(
|
||||||
final String key,
|
final String key,
|
||||||
final TreeFormatter treeFormatter,
|
final TreeFormatter treeFormatter,
|
||||||
final AtomicBoolean removed,
|
final AtomicBoolean removed,
|
||||||
final Stream<NamedRevBlob> s) {
|
final Stream<NamedRevBlob> entryStream) {
|
||||||
return () -> s
|
return () -> entryStream
|
||||||
.peek(flagIfFound(key, removed))
|
.peek(flagIfFound(key, removed))
|
||||||
.filter(isNotKey(key))
|
.filter(isNotKey(key))
|
||||||
.forEach(addToTree(treeFormatter));
|
.forEach(addToTree(treeFormatter));
|
||||||
|
|
Loading…
Reference in a new issue