mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 18:39:45 -05:00
Remove unnecessary null check
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user