From e477fa3e7fae085ace4bcf6a0a22f41b84ff8067 Mon Sep 17 00:00:00 2001 From: NEZNAMY Date: Thu, 5 Sep 2024 18:32:04 +0200 Subject: [PATCH] Simplify --- .../java/com/velocitypowered/proxy/data/StringCollection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/data/StringCollection.java b/proxy/src/main/java/com/velocitypowered/proxy/data/StringCollection.java index f17a00d..7ebec3d 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/data/StringCollection.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/data/StringCollection.java @@ -179,7 +179,7 @@ public Collection getEntries() { * @return {@code true} if this collection contains given entry, {@code false} if not */ public boolean contains(@NotNull String entry) { - if (this.entry != null && this.entry.equals(entry)) return true; + if (entry.equals(this.entry)) return true; return entries != null && entries.contains(entry); }