Get rid of empty if-statements
Change-Id: Ie1a6a8e60bcb7affd4c8fe7432d6bb93ca499637
This commit is contained in:
@@ -154,9 +154,10 @@ public class ReceiveCommitsAdvertiseRefsHook implements AdvertiseRefsHook {
|
||||
RevCommit c;
|
||||
try {
|
||||
while ((c = rw.next()) != null && toInclude.size() < max) {
|
||||
if (alreadySending.contains(c)) {
|
||||
} else if (toInclude.contains(c)) {
|
||||
} else if (c.getParentCount() > 1) {
|
||||
if (alreadySending.contains(c)
|
||||
|| toInclude.contains(c)
|
||||
|| c.getParentCount() > 1) {
|
||||
// Do nothing
|
||||
} else if (toInclude.size() < base) {
|
||||
toInclude.add(c);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user