We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if-begin-to-cond
1 parent d372973 commit 01f8c11Copy full SHA for 01f8c11
typed-racket-test/optimizer/transform.rkt
@@ -33,13 +33,12 @@
33
(for ((entry new-tr-log))
34
(write-stringln entry))
35
(write-stringln "END")
36
- (if (regexp-match "\n" new-output)
37
- (begin
38
- (write-stringln "#<<END")
39
- (write-stringln new-output)
40
- (write-stringln "END"))
41
42
- (write new-output)))
+ (cond
+ [(regexp-match "\n" new-output)
+ (write-stringln "#<<END")
+ (write-stringln new-output)
+ (write-stringln "END")]
+ [else (write new-output)])
43
(write-string source-code))))
44
45
;; proc returns the list of tests to be run on each file
0 commit comments