From b1ba01ed3cb4dbc7d2927969374fb322bb90a510 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Tue, 25 Sep 2018 23:09:37 +0200 Subject: [PATCH] run standard 1.12 --fix --- examples/client_echo/client_echo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client_echo/client_echo.js b/examples/client_echo/client_echo.js index aa529d9..971d167 100644 --- a/examples/client_echo/client_echo.js +++ b/examples/client_echo/client_echo.js @@ -27,7 +27,7 @@ client.on('chat', function (packet) { const username = jsonMsg.with[0].text const msg = jsonMsg.with[1] if (username === client.username) return - if (msg.text) client.write('chat', { message: msg.text}) - else client.write('chat', { message: msg}) + if (msg.text) client.write('chat', { message: msg.text }) + else client.write('chat', { message: msg }) } })