Remove redundant contains check
This commit is contained in:
@@ -43,12 +43,10 @@ public class PluginDependencyUtils {
|
||||
graph.removeEdge(node, candidate);
|
||||
|
||||
if (graph.adjacentNodes(node).isEmpty()) {
|
||||
if (!noEdges.contains(node)) {
|
||||
noEdges.add(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!graph.edges().isEmpty()) {
|
||||
throw new IllegalStateException("Plugin circular dependency found: " + createLoopInformation(graph));
|
||||
|
Reference in New Issue
Block a user