13
0
geforkt von Mirrors/Velocity

Remove redundant contains check

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-09-27 15:20:24 -04:00
Ursprung 0f5dc4b248
Commit 8c98395d51

Datei anzeigen

@ -43,12 +43,10 @@ public class PluginDependencyUtils {
graph.removeEdge(node, candidate); graph.removeEdge(node, candidate);
if (graph.adjacentNodes(node).isEmpty()) { if (graph.adjacentNodes(node).isEmpty()) {
if (!noEdges.contains(node)) {
noEdges.add(node); noEdges.add(node);
} }
} }
} }
}
if (!graph.edges().isEmpty()) { if (!graph.edges().isEmpty()) {
throw new IllegalStateException("Plugin circular dependency found: " + createLoopInformation(graph)); throw new IllegalStateException("Plugin circular dependency found: " + createLoopInformation(graph));