Skip to content

Commit 701870f

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 945d1cd commit 701870f

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
@@ -44,11 +44,9 @@
4444
(define (contents file)
4545
(regexp-replace #rx"\n+$" (file->string file) ""))
4646
(define undefineds (build-markdown-doc src-file "gen.md"))
47-
(for ([u (in-list undefineds)])
48-
(when (eq? 'tech (car u))
49-
(test #:failure-message
50-
(format "undefined tech: ~e" u)
51-
#f)))
47+
(for ([u (in-list undefineds)]
48+
#:when (eq? 'tech (car u)))
49+
(test #:failure-message (format "undefined tech: ~e" u) #f))
5250
(test #:failure-message
5351
(format
5452
"mismatch for: \"~a\", expected text in: \"~a\", got:\n~a"

0 commit comments

Comments
 (0)