Skip to content

Commit

Permalink
Automatic code cleanup. (#18417)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 488722109
Change-Id: Ia0422938fd88d4260b39b1e3a54a548766c91ef9

Co-authored-by: Googler <[email protected]>
  • Loading branch information
keertk and Googler authored May 16, 2023
1 parent 758b44d commit 84b45ae
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadSafe;
import com.google.devtools.build.lib.testutil.TestThread;
import java.util.ArrayList;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executors;
Expand Down Expand Up @@ -153,12 +152,7 @@ protected Visit getVisitResult(Iterable<String> values) {
synchronized (this) {
visits.add(values);
}
return new Visit(
values,
Iterables.concat(
Iterables.transform(
values,
v -> Optional.ofNullable(successorMap.get(v)).orElse(ImmutableList.of()))));
return new Visit(values, Iterables.concat(Iterables.transform(values, successorMap::get)));
}

@Override
Expand Down

0 comments on commit 84b45ae

Please sign in to comment.