mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-11-16 07:35:32 +01:00
Use completedFuture instead
This commit is contained in:
parent
3ba29f1147
commit
31deef2a62
@ -372,7 +372,7 @@ public final class LocalExpansionManager implements Listener {
|
||||
public CompletableFuture<@NotNull List<@Nullable Class<? extends PlaceholderExpansion>>> findExpansionsOnDisk() {
|
||||
File[] files = folder.listFiles((dir, name) -> name.endsWith(".jar"));
|
||||
if(files == null){
|
||||
return CompletableFuture.supplyAsync(Collections::emptyList);
|
||||
return CompletableFuture.completedFuture(Collections.emptyList());
|
||||
}
|
||||
|
||||
return Arrays.stream(files)
|
||||
|
Loading…
Reference in New Issue
Block a user