Remove redundant contains check

This commit is contained in:
Andrew Steinborn
2018-09-27 15:20:24 -04:00
parent 0f5dc4b248
commit 8c98395d51

View File

@@ -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));