diff options
Diffstat (limited to 'java/com/google/gerrit/server/restapi/group/ListGroups.java')
-rw-r--r-- | java/com/google/gerrit/server/restapi/group/ListGroups.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/com/google/gerrit/server/restapi/group/ListGroups.java b/java/com/google/gerrit/server/restapi/group/ListGroups.java index 968a7dd733..8d8dc3dafb 100644 --- a/java/com/google/gerrit/server/restapi/group/ListGroups.java +++ b/java/com/google/gerrit/server/restapi/group/ListGroups.java @@ -308,8 +308,7 @@ public class ListGroups implements RestReadView<TopLevelResource> { private Stream<GroupReference> getAllExistingGroups() throws IOException, ConfigInvalidException { if (!projects.isEmpty()) { - return projects - .stream() + return projects.stream() .map(ProjectState::getAllGroups) .flatMap(Collection::stream) .distinct(); |