From 8c98395d51fa8703c5a3d0f95c2830304570b072 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Thu, 27 Sep 2018 15:20:24 -0400 Subject: [PATCH] Remove redundant contains check --- .../proxy/plugin/util/PluginDependencyUtils.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/plugin/util/PluginDependencyUtils.java b/proxy/src/main/java/com/velocitypowered/proxy/plugin/util/PluginDependencyUtils.java index 5b35a4200..090f1382e 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/plugin/util/PluginDependencyUtils.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/plugin/util/PluginDependencyUtils.java @@ -43,9 +43,7 @@ public class PluginDependencyUtils { graph.removeEdge(node, candidate); if (graph.adjacentNodes(node).isEmpty()) { - if (!noEdges.contains(node)) { - noEdges.add(node); - } + noEdges.add(node); } } }