whenMoreResolved should return null when resolved
This commit is contained in:
parent
21d3eba0e5
commit
c7621d1de3
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ public final class Capability {
|
||||||
@Override
|
@Override
|
||||||
public CompletableFuture<ClientHook> whenMoreResolved() {
|
public CompletableFuture<ClientHook> whenMoreResolved() {
|
||||||
if (this.resolved != null) {
|
if (this.resolved != null) {
|
||||||
return CompletableFuture.completedFuture(this.resolved);
|
return null;
|
||||||
}
|
}
|
||||||
else if (this.resolveTask != null) {
|
else if (this.resolveTask != null) {
|
||||||
return this.resolveTask.thenApply(void_ -> this.resolved);
|
return this.resolveTask.thenApply(void_ -> this.resolved);
|
||||||
|
|
Loading…
Reference in a new issue