Skip to content

Commit 2b57f2a

Browse files
Fix 1 occurrence of when-expression-in-for-loop-to-when-keyword
Use the `#:when` keyword instead of `when` to reduce loop body indentation.
1 parent ae32b9b commit 2b57f2a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scribble-test/tests/scribble/markdown.rkt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@
4040
(define (contents file)
4141
(regexp-replace #rx"\n+$" (file->string file) ""))
4242
(define undefineds (build-markdown-doc src-file "gen.md"))
43-
(for ([u (in-list undefineds)])
44-
(when (eq? 'tech (car u))
45-
(test #:failure-message
46-
(format "undefined tech: ~e" u)
47-
#f)))
43+
(for ([u (in-list undefineds)]
44+
#:when (eq? 'tech (car u)))
45+
(test #:failure-message (format "undefined tech: ~e" u) #f))
4846
(test #:failure-message
4947
(format
5048
"mismatch for: \"~a\", expected text in: \"~a\", got:\n~a"

0 commit comments

Comments
 (0)