.
This commit is contained in:
parent
bac7809f3c
commit
a5e8126976
1 changed files with 5 additions and 6 deletions
|
@ -1,9 +1,5 @@
|
|||
package de.tudbut.tryumph.config;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.BufferedReader;
|
||||
|
||||
import tudbut.parsing.TCN;
|
||||
import tudbut.parsing.JSON;
|
||||
import de.tudbut.async.*;
|
||||
|
@ -32,9 +28,12 @@ public class RequestCatcherConfig {
|
|||
});
|
||||
}
|
||||
|
||||
private Task<Void> build() {
|
||||
private Task<RequestCatcherConfig> build() {
|
||||
return t((res, rej) -> {
|
||||
res.call(null);
|
||||
if(this.name == null || this.configHolder == null) {
|
||||
rej.call(new IllegalStateException("RequestCatcherConfig is not correctly initialized but was used"));
|
||||
}
|
||||
res.call(this);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue