Skip to content

Commit d67bce1

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 e0bec7d commit d67bce1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

typed-racket-lib/typed-racket/types/classes.rkt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
(match-define (Row: inits fields methods augments _) row)
8989
;; check a given clause type (e.g., init, field)
9090
(define (check-clauses row-dict absence-set)
91-
(for ([(name _) (in-dict row-dict)])
92-
(when (member name absence-set)
93-
(fail name))))
91+
(for ([(name _) (in-dict row-dict)]
92+
#:when (member name absence-set))
93+
(fail name)))
9494
(check-clauses inits init-absents)
9595
(check-clauses fields field-absents)
9696
(check-clauses methods method-absents)

0 commit comments

Comments
 (0)