*set methods to default to empty array

This commit is contained in:
Derrick Hammer 2022-08-31 18:26:18 -04:00
parent bcf4b0d998
commit c894082b9d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ async function relayHasMethods(
methodList: string[], methodList: string[],
relay: string relay: string
): Promise<boolean> { ): Promise<boolean> {
let methods: string[]; let methods: string[] = [];
let query = network.simpleQuery(relay, "get_methods", "core"); let query = network.simpleQuery(relay, "get_methods", "core");
let resp = (await query.result) as MethodsRPCResponse; let resp = (await query.result) as MethodsRPCResponse;