*set methods to default to empty array
This commit is contained in:
parent
bcf4b0d998
commit
c894082b9d
|
@ -190,7 +190,7 @@ async function relayHasMethods(
|
|||
methodList: string[],
|
||||
relay: string
|
||||
): Promise<boolean> {
|
||||
let methods: string[];
|
||||
let methods: string[] = [];
|
||||
let query = network.simpleQuery(relay, "get_methods", "core");
|
||||
|
||||
let resp = (await query.result) as MethodsRPCResponse;
|
||||
|
|
Loading…
Reference in New Issue