diff --git a/src/index.ts b/src/index.ts index 41acee4..d29a570 100644 --- a/src/index.ts +++ b/src/index.ts @@ -190,7 +190,7 @@ async function relayHasMethods( methodList: string[], relay: string ): Promise { - let methods: string[]; + let methods: string[] = []; let query = network.simpleQuery(relay, "get_methods", "core"); let resp = (await query.result) as MethodsRPCResponse;