From 04273de995f71b9ed3ac51650b13a1c25de7d770 Mon Sep 17 00:00:00 2001 From: BrowkS Date: Wed, 6 May 2020 12:36:24 +0300 Subject: [PATCH] Removed an unnecessary check --- src/main/java/com/massivecraft/factions/tag/FactionTag.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/tag/FactionTag.java b/src/main/java/com/massivecraft/factions/tag/FactionTag.java index fda5a663..c799e47b 100644 --- a/src/main/java/com/massivecraft/factions/tag/FactionTag.java +++ b/src/main/java/com/massivecraft/factions/tag/FactionTag.java @@ -149,10 +149,7 @@ public enum FactionTag implements Tag { if (!this.foundInString(text)) { return text; } - String result = null; - if (this.biFunction != null) { - result = this.function == null ? this.biFunction.apply(faction, player) : this.function.apply(faction); - } + String result = this.function == null ? this.biFunction.apply(faction, player) : this.function.apply(faction); return result == null ? null : text.replace(this.tag, result); }