From 1edb20b399944c6eec1d7c555ab170b6dd276840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 16 Mar 2020 10:22:16 +0100 Subject: refactor: add no-return-await lint rule (#4384) --- core/examples/http_bench.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/examples') diff --git a/core/examples/http_bench.js b/core/examples/http_bench.js index abe81e41e..4314ba680 100644 --- a/core/examples/http_bench.js +++ b/core/examples/http_bench.js @@ -85,7 +85,7 @@ function listen() { /** Accepts a connection, returns rid. */ async function accept(rid) { - return await sendAsync(ops["accept"], rid); + return sendAsync(ops["accept"], rid); } /** @@ -93,12 +93,12 @@ async function accept(rid) { * Returns bytes read. */ async function read(rid, data) { - return await sendAsync(ops["read"], rid, data); + return sendAsync(ops["read"], rid, data); } /** Writes a fixed HTTP response to the socket rid. Returns bytes written. */ async function write(rid, data) { - return await sendAsync(ops["write"], rid, data); + return sendAsync(ops["write"], rid, data); } function close(rid) { -- cgit v1.2.3