diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-21 16:40:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-21 16:40:10 -0400 |
commit | 9dfebbc9496138efbeedc431068f41662c780f3e (patch) | |
tree | c3718c3dc132d11c08c8fc18933daebf886bf787 /tests/echo_server.ts | |
parent | 6cded14bdf313762956d4d5361cfe8115628b535 (diff) |
Fix eslint warnings (#2151)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
Diffstat (limited to 'tests/echo_server.ts')
-rw-r--r-- | tests/echo_server.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/echo_server.ts b/tests/echo_server.ts index 15c3112ce..73995eab5 100644 --- a/tests/echo_server.ts +++ b/tests/echo_server.ts @@ -2,8 +2,10 @@ const { args, listen, copy } = Deno; const addr = args[1] || "127.0.0.1:4544"; const listener = listen("tcp", addr); console.log("listening on", addr); -listener.accept().then(async conn => { - await copy(conn, conn); - conn.close(); - listener.close(); -}); +listener.accept().then( + async (conn): Promise<void> => { + await copy(conn, conn); + conn.close(); + listener.close(); + } +); |