Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Remove redundant contains check
Dieser Commit ist enthalten in:
Ursprung
0f5dc4b248
Commit
8c98395d51
@ -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));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren