avoid call to coerce-contract when we know it is already a contract
This commit is contained in:
parent
8c5c8da1a7
commit
84048f6776
|
@ -314,7 +314,9 @@
|
||||||
#`(begin
|
#`(begin
|
||||||
(define contract-id
|
(define contract-id
|
||||||
;; let is here to give the right name.
|
;; let is here to give the right name.
|
||||||
(let ([#,ex-id (coerce-contract '#,contract-error-name ctrct)
|
(let ([#,ex-id #,(if arrow?
|
||||||
|
#'ctrct
|
||||||
|
#`(coerce-contract '#,contract-error-name ctrct))
|
||||||
#;(opt/c ctrct #:error-name #,contract-error-name)])
|
#;(opt/c ctrct #:error-name #,contract-error-name)])
|
||||||
#,ex-id))
|
#,ex-id))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user