diff --git a/java/com/google/gerrit/server/submit/ConfiguredSubscriptionGraphFactory.java b/java/com/google/gerrit/server/submit/ConfiguredSubscriptionGraphFactory.java index 00e244381c..3f3b544b90 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)); } }