Skip to content

Commit eb5463d

Browse files
Fix 1 occurrence of inverted-unless
This negated `unless` expression can be replaced by a `when` expression.
1 parent 32d2a82 commit eb5463d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typed-racket-lib/typed-racket/private/with-types.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
(define (with-type-helper stx body fvids fvtys exids extys resty expr? ctx te-mode)
5151
(define old-context (unbox typed-context?))
5252
(define old-te-mode (unbox type-enforcement-mode))
53-
(unless (not old-context)
53+
(when old-context
5454
(tc-error/stx stx (format "with-type cannot be used in a typed module. ~a " old-context)))
5555
(set-box! typed-context? #t)
5656
(set-box! type-enforcement-mode te-mode)

0 commit comments

Comments
 (0)