From a20c5b064e370d858fcb8e18859e9ca72c3e6f18 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 21 Jul 2018 23:23:45 +0100 Subject: [PATCH] KeyRemover: minor renaming of lambda variable --- src/main/java/net/kemitix/gitdb/impl/KeyRemover.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/kemitix/gitdb/impl/KeyRemover.java b/src/main/java/net/kemitix/gitdb/impl/KeyRemover.java index 0ae11c6..2a7df2a 100644 --- a/src/main/java/net/kemitix/gitdb/impl/KeyRemover.java +++ b/src/main/java/net/kemitix/gitdb/impl/KeyRemover.java @@ -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> addOthersToTree( final String key, final TreeFormatter treeFormatter, final AtomicBoolean removed, - final Stream s) { - return () -> s + final Stream entryStream) { + return () -> entryStream .peek(flagIfFound(key, removed)) .filter(isNotKey(key)) .forEach(addToTree(treeFormatter));