summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2017-01-01 10:10:49 +0300
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2017-01-01 10:10:49 +0300
commitfaf30806e1483191889d63a405c32234b67ca6c0 (patch)
tree5a299c617d255ebdd4fb4dad59c7c5be269197ef /modules
parentnode.scm (node-loadavg): New procedure (diff)
downloadguile-ssh-faf30806e1483191889d63a405c32234b67ca6c0.tar.gz
node.scm (rrepl-skip-to-prompt): Use 'when'
* modules/ssh/dist/node.scm (rrepl-skip-to-prompt): Use 'when'.
Diffstat (limited to 'modules')
-rw-r--r--modules/ssh/dist/node.scm6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/ssh/dist/node.scm b/modules/ssh/dist/node.scm
index e4926fc..901290c 100644
--- a/modules/ssh/dist/node.scm
+++ b/modules/ssh/dist/node.scm
@@ -153,10 +153,8 @@ to #t then a REPL server will be stopped as soon as an evaluation is done."
"Read from REPL-CHANNEL until REPL is observed. Throw 'node-error' on an
error."
(let loop ((line (read-line repl-channel)))
-
- (and (eof-object? line)
- (node-error "Could not locate REPL prompt" repl-channel))
-
+ (when (eof-object? line)
+ (node-error "Could not locate REPL prompt" repl-channel))
(or (string=? "Enter `,help' for help." line)
(loop (read-line repl-channel)))))