From 65197bdb51c7f3246e68049184d68963b5f9beeb Mon Sep 17 00:00:00 2001 From: Kenta Iwasaki Date: Fri, 12 Jun 2020 06:29:43 +0900 Subject: [PATCH] sdk/js: quick format --- ts/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/main.js b/ts/main.js index 2a4d74b..7b77092 100644 --- a/ts/main.js +++ b/ts/main.js @@ -444,8 +444,9 @@ class Node { const conn = new net.Socket(); await new Promise((resolve, reject) => { - conn.once('error', err => reject(err)); conn.once('connect', resolve); + conn.once('error', err => reject(err)); + conn.connect(opts); });