diff --git a/src/PolykeyAgent.ts b/src/PolykeyAgent.ts index ae1659bcf..dd6fd0018 100644 --- a/src/PolykeyAgent.ts +++ b/src/PolykeyAgent.ts @@ -193,7 +193,7 @@ class PolykeyAgent { })); // Remove your own node ID if provided as a seed node const nodeIdOwn = keyManager.getNodeId(); - const nodeIdEncodedOwn = Object.keys(seedNodes).find(nodeIdEncoded => { + const nodeIdEncodedOwn = Object.keys(seedNodes).find((nodeIdEncoded) => { return nodeIdOwn.equals(nodesUtils.decodeNodeId(nodeIdEncoded)!); }); if (nodeIdEncodedOwn != null) { diff --git a/src/bin/agent/CommandStart.ts b/src/bin/agent/CommandStart.ts index 211883bb6..64a6eda21 100644 --- a/src/bin/agent/CommandStart.ts +++ b/src/bin/agent/CommandStart.ts @@ -81,7 +81,7 @@ class CommandStart extends CommandPolykey { // Will be '[{...}, false]' if `--seed-nodes='...'` const [seedNodes, defaults] = options.seedNodes; let seedNodes_ = seedNodes; - if (defaults) seedNodes_ = {...options.network, ...seedNodes}; + if (defaults) seedNodes_ = { ...options.network, ...seedNodes }; const agentConfig = { password, nodePath: options.nodePath,