Skip to content

Commit 971f61c

Browse files
Fix 1 occurrence of inline-unnecessary-define
This variable is returned immediately and can be inlined.
1 parent 01ea752 commit 971f61c

File tree

1 file changed

+4
-6
lines changed
  • typed-racket-lib/typed-racket/static-contracts/combinators

1 file changed

+4
-6
lines changed

typed-racket-lib/typed-racket/static-contracts/combinators/exist.rkt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@
2929
(define (sc->contract v f)
3030
(match-define (exist-combinator (list names doms rngs)) v)
3131
(parameterize ([static-contract-may-contain-free-ids? #t])
32-
(define a
33-
(with-syntax ([doms-stx (f doms)]
34-
[rngs-stx (f rngs)]
35-
[n (car names)])
36-
#'(->i ([n doms-stx]) (_ (n) rngs-stx))))
37-
a))
32+
(with-syntax ([doms-stx (f doms)]
33+
[rngs-stx (f rngs)]
34+
[n (car names)])
35+
#'(->i ([n doms-stx]) (_ (n) rngs-stx)))))
3836
(define (sc->constraints v f)
3937
(simple-contract-restrict 'flat))])
4038

0 commit comments

Comments
 (0)