Skip to content

Commit c9d12e3

Browse files
Fix 1 occurrence of inverted-when
This negated `when` expression can be replaced by an `unless` expression.
1 parent c7858d9 commit c9d12e3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

typed-racket-lib/typed-racket/core.rkt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@
4848
(and (attribute opt?) (syntax-e (attribute opt?))))]
4949
[with-refinements? (and (or (attribute refinement-reasoning?)
5050
(with-refinements?))
51-
(when (not (eq? te-mode deep))
51+
(unless (eq? te-mode deep)
5252
(raise-arguments-error
53-
(string->symbol (format "typed/racket/~a" (keyword->string (syntax-e te-attr))))
54-
"#:with-refinements unsupported")))])
53+
(string->symbol (format "typed/racket/~a"
54+
(keyword->string
55+
(syntax-e te-attr))))
56+
"#:with-refinements unsupported")))])
5557
(tc-module/full te-mode stx pmb-form
5658
(λ (new-mod pre-before-code pre-after-code)
5759
(define ctc-cache (make-hash))

0 commit comments

Comments
 (0)