We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
and-let-to-cond
1 parent d02f7bc commit 50b85cfCopy full SHA for 50b85cf
drracket-core-lib/drracket/private/get-defs.rkt
@@ -96,12 +96,13 @@
96
(and smallest-i
97
(string-length (define-popup-info-prefix
98
(list-ref the-define-popup-infos smallest-i))))
99
- (and smallest-i
100
- (let ([proc (define-popup-info-get-name
101
- (list-ref the-define-popup-infos smallest-i))])
102
- (if proc
103
- (lambda (text pos) (proc text pos get-defn-name))
104
- get-defn-name)))
+ (cond
+ [smallest-i
+ (define proc (define-popup-info-get-name (list-ref the-define-popup-infos smallest-i)))
+ (if proc
+ (lambda (text pos) (proc text pos get-defn-name))
+ get-defn-name)]
105
+ [else #f])
106
final-positions))
107
108
(define defs
0 commit comments