Skip to content

Commit 4f58888

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

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
@@ -49,10 +49,12 @@
4949
(and (attribute opt?) (syntax-e (attribute opt?))))]
5050
[with-refinements? (and (or (attribute refinement-reasoning?)
5151
(with-refinements?))
52-
(when (not (eq? te-mode deep))
52+
(unless (eq? te-mode deep)
5353
(raise-arguments-error
54-
(string->symbol (format "typed/racket/~a" (keyword->string (syntax-e te-attr))))
55-
"#:with-refinements unsupported")))])
54+
(string->symbol (format "typed/racket/~a"
55+
(keyword->string
56+
(syntax-e te-attr))))
57+
"#:with-refinements unsupported")))])
5658
(tc-module/full te-mode stx pmb-form
5759
(λ (new-mod pre-before-code pre-after-code)
5860
(define ctc-cache (make-hash))

0 commit comments

Comments
 (0)