GetRelated: Fix incorrect alignment of if-block

Change-Id: I25f936c39c7d2b95a50d1b4efc748d7eb57afb25
This commit is contained in:
David Pursehouse
2016-04-12 16:07:55 +09:00
parent 309d194dee
commit 146020705b

View File

@@ -81,7 +81,8 @@ public class GetRelated implements RestReadView<RevisionResource> {
.byProjectGroups(rsrc.getChange().getProject(), groups);
if (cds.isEmpty()) {
return Collections.emptyList();
} if (cds.size() == 1
}
if (cds.size() == 1
&& cds.get(0).getId().equals(rsrc.getChange().getId())) {
return Collections.emptyList();
}