Remove unnecessary else clause increasing nesting level
Change-Id: I216ab29b3ded6414dd195ceb1bed40ca849001bf
This commit is contained in:
@@ -46,9 +46,8 @@ public class ConfiguredSubscriptionGraphFactory implements SubscriptionGraph.Fac
|
|||||||
throws SubmoduleConflictException {
|
throws SubmoduleConflictException {
|
||||||
if (cfg.getBoolean("submodule", "enableSuperProjectSubscriptions", true)) {
|
if (cfg.getBoolean("submodule", "enableSuperProjectSubscriptions", true)) {
|
||||||
return subscriptionGraphFactory.compute(updatedBranches, orm);
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user