Skip to content

Commit a25a909

Browse files
resyntax-ci[bot]samth
authored andcommitted
Fix 1 occurrence of cond-let-to-cond-define
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
1 parent aa22009 commit a25a909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typed-racket-lib/typed-racket/typed-reader.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
(cond
2525
[(special-comment? v) (loop)]
2626
[(eof-object? v)
27-
(let-values ([(l c p) (port-next-location port)])
28-
(raise-read-eof-error "unexpected EOF in type annotation" src l c p 1))]
27+
(define-values (l c p) (port-next-location port))
28+
(raise-read-eof-error "unexpected EOF in type annotation" src l c p 1)]
2929
[else v])))
3030

3131
(define (parse port read-one src)

0 commit comments

Comments
 (0)