commit ecef2ac4504e53aa67672416e478f6ce8cf59cc6 Author: Matthias Sohn Date: Sun Oct 11 00:16:38 2020 +0200 Remove unnecessary else clause increasing nesting level Change-Id: I216ab29b3ded6414dd195ceb1bed40ca849001bf diff --git a/java/com/google/gerrit/server/submit/ConfiguredSubscriptionGraphFactory.java b/java/com/google/gerrit/server/submit/ConfiguredSubscriptionGraphFactory.java index 00e2443..3f3b544 100644 --- a/java/com/google/gerrit/server/submit/ConfiguredSubscriptionGraphFactory.java +++ b/java/com/google/gerrit/server/submit/ConfiguredSubscriptionGraphFactory.java @@ -46,9 +46,8 @@ public class ConfiguredSubscriptionGraphFactory implements SubscriptionGraph.Fac throws SubmoduleConflictException { if (cfg.getBoolean("submodule", "enableSuperProjectSubscriptions", true)) { return subscriptionGraphFactory.compute(updatedBranches, orm); - } else { - logger.atFine().log("Updating superprojects disabled"); - return SubscriptionGraph.createEmptyGraph(ImmutableSet.copyOf(updatedBranches)); } + logger.atFine().log("Updating superprojects disabled"); + return SubscriptionGraph.createEmptyGraph(ImmutableSet.copyOf(updatedBranches)); } }