summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/ws/README.md5
1 files changed, 1 insertions, 4 deletions
diff --git a/std/ws/README.md b/std/ws/README.md
index e4d924df6..c166a5fb6 100644
--- a/std/ws/README.md
+++ b/std/ws/README.md
@@ -102,10 +102,7 @@ try {
while (true) {
await Deno.stdout.write(encode("> "));
const line = await tpr.readLine();
- if (line === null) {
- break;
- }
- if (line === "close") {
+ if (line === null || line === "close") {
break;
} else if (line === "ping") {
await sock.ping();