Skip to content

Commit 2ecb61b

Browse files
Automated Resyntax fixes (#699)
Resyntax fixed 20 issues in 4 files. Fixed 5 occurrences of `let-to-define` Fixed 5 occurrences of `instantiate-to-new` Fixed 3 occurrences of `cond-let-to-cond-define` Fixed 2 occurrences of `tidy-require` Fixed 1 occurrence of `let-values-then-call-to-call-with-values` Fixed 1 occurrence of `nested-for-to-for*` Fixed 1 occurrence of `unused-definition` Fixed 1 occurrence of `sort-with-keyed-comparator-to-sort-by-key` Fixed 1 occurrence of `if-else-false-to-and` --------- Co-authored-by: resyntax-ci[bot] <181813515+resyntax-ci[bot]@users.noreply.github.com>
1 parent dfcea1f commit 2ecb61b

File tree

4 files changed

+269
-294
lines changed

4 files changed

+269
-294
lines changed

drracket-tool-lib/drracket/get-module-path.rkt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#lang racket/base
2-
(require racket/class
2+
(require drracket/find-module-path-completions
3+
framework
4+
racket/class
35
racket/contract
46
racket/gui/base
5-
string-constants
67
setup/path-to-relative
7-
framework
8-
drracket/find-module-path-completions)
8+
string-constants)
99

1010
(provide
1111
(contract-out
@@ -341,12 +341,12 @@
341341
[pending-str+dlg #f]
342342

343343
;; this is #f when there is not alternate racket supplied
344-
[clcl/clcp (if (path-string? initial-alternate-racket)
345-
(let-values ([(a b c) (alternate-racket-clcl/clcp
346-
initial-alternate-racket
347-
pkgs-dirs-cache)])
348-
(list a b c))
349-
#f)])
344+
[clcl/clcp (and
345+
(path-string? initial-alternate-racket)
346+
(call-with-values (λ ()
347+
(alternate-racket-clcl/clcp initial-alternate-racket
348+
pkgs-dirs-cache))
349+
list))])
350350
(sync
351351
(handle-evt
352352
new-alternate-racket-chan

0 commit comments

Comments
 (0)