mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-12-27 03:17:45 +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