Remove unnecessary null check

This commit is contained in:
Crafting_tunbol committed 2026-06-28 16:07:06 +02:00
1 parent 3d75520863
commit 001e26cbb0
1 file changed
+3 -5
@@ -269,11 +269,9 @@ public class PlaceholderManagerImpl extends RefreshableFeature implements Placeh
public static List<String> detectPlaceholders(@NonNull String text) {
List<String> placeholders = new ArrayList<>(detectPercentPlaceholders(text));
TAB tab = TAB.getInstance();
if (tab != null) {
for (String placeholder : tab.getPlatform().detectAdditionalPlaceholders(text)) {
if (!placeholders.contains(placeholder)) {
placeholders.add(placeholder);
}
for (String placeholder : tab.getPlatform().detectAdditionalPlaceholders(text)) {
if (!placeholders.contains(placeholder)) {
placeholders.add(placeholder);
}
}
return placeholders;