Skip to content

Commit 0b5e0fc

Browse files
Fix 1 occurrence of unless-expression-in-for-loop-to-unless-keyword
Use the `#:unless` keyword instead of `unless` to reduce loop body indentation.
1 parent dc7a3f0 commit 0b5e0fc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

typed-racket-lib/typed-racket/typecheck/check-class-unit.rkt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,14 +1309,14 @@
13091309
;; Check that by-name inits are valid for the superclass
13101310
(define (check-by-name init-stxs super-inits)
13111311
(match-define (super-init-stxs _ by-name) init-stxs)
1312-
(for ([(name _) (in-dict by-name)])
1313-
(unless (dict-ref super-inits name #f)
1314-
(tc-error/fields
1315-
"invalid `super-new' or `super-instantiate'"
1316-
#:more "init argument not accepted by superclass"
1317-
"init name" name
1318-
#:stx #`#,name
1319-
#:delayed? #t))))
1312+
(for ([(name _) (in-dict by-name)]
1313+
#:unless (dict-ref super-inits name #f))
1314+
(tc-error/fields "invalid `super-new' or `super-instantiate'"
1315+
#:more "init argument not accepted by superclass"
1316+
"init name"
1317+
name
1318+
#:stx #`#,name
1319+
#:delayed? #t)))
13201320

13211321
;; check-super-new : super-init-stxs Dict Type -> Void
13221322
;; Check if the super-new call is well-typed

0 commit comments

Comments
 (0)