Skip to content

Commit 4841c2e

Browse files
committed
Single branch if->when
1 parent de77094 commit 4841c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fnl/conjure/client/guile/socket.fnl

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
(= "" (a.get-in msgs [1 :out])))
7979
(a.assoc-in msgs [1 :out] (.. comment-prefix "Empty result")))
8080

81-
(if opts.on-result
81+
(when opts.on-result
8282
(opts.on-result (str.join "\n" (format-message (a.last msgs)))))
8383
(a.run! display-result msgs))
8484
{:batch? true})))))

0 commit comments

Comments
 (0)