Ensure node address is returned for Object type responses

This commit is contained in:
Franck Royer 2021-09-21 14:21:51 +10:00
parent eef6ff89c3
commit a95315eeb5
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export async function getBootstrapNodes(
if (typeof nodes === 'object') {
nodes = Object.values(nodes);
getPseudoRandomSubset(nodes, wantedNumber);
return getPseudoRandomSubset(nodes, wantedNumber);
}
throw `Failed to retrieve bootstrap nodes: response format is not supported: ${JSON.stringify(