Skip to content

Commit

Permalink
Fix 1 occurrence of cond-let-to-cond-define
Browse files Browse the repository at this point in the history
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
  • Loading branch information
resyntax-ci[bot] committed Feb 28, 2025
1 parent a51e0f3 commit df62579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typed-racket-lib/typed-racket/typed-reader.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
(cond
[(special-comment? v) (loop)]
[(eof-object? v)
(let-values ([(l c p) (port-next-location port)])
(raise-read-eof-error "unexpected EOF in type annotation" src l c p 1))]
(define-values (l c p) (port-next-location port))
(raise-read-eof-error "unexpected EOF in type annotation" src l c p 1)]
[else v])))

(define (parse port read-one src)
Expand Down

0 comments on commit df62579

Please sign in to comment.