Skip to content

Commit

Permalink
sdk/js: quick format
Browse files Browse the repository at this point in the history
  • Loading branch information
lithdew committed Jun 11, 2020
1 parent 7c15a73 commit 65197bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 65197bd

Please sign in to comment.