From c894082b9db716ad2dbc64bc2b9352bfcf49b8b9 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 31 Aug 2022 18:26:18 -0400 Subject: [PATCH] *set methods to default to empty array --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;