Fix unnecessary conditional check.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 10 Aug 2017 22:00:26 +0000 (17:00 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 10 Aug 2017 22:00:26 +0000 (17:00 -0500)
* 8sync/actors.scm (actor-main-loop): Remove accidental double-when.

8sync/actors.scm

index 6d17e0597d9bab86bdaf86b6f85bd34fbd7179a5..8abe41a1133b20c65dcaf8a3ff3ca1c5f40a8c3e 100644 (file)
@@ -372,10 +372,9 @@ and handling them."
           (lambda vals
             ;; Return reply if necessary
             (when (message-wants-reply message)
-              (when (message-wants-reply message)
-                (%<- #f actor (message-from message) '*reply*
-                     vals ((actor-msg-id-generator actor))
-                     (message-id message)))))))
+              (%<- #f actor (message-from message) '*reply*
+                   vals ((actor-msg-id-generator actor))
+                   (message-id message))))))
       (const #t)
       (let ((err (current-error-port)))
         (lambda (key . args)