Skip to content

Commit 3b5a02a

Browse files
Copilotjackfirth
andcommitted
Remove redundant length check in triple-nested-when pattern
The pattern already guarantees at least 3 conditions by matching structure Co-authored-by: jackfirth <[email protected]>
1 parent 7f61e1e commit 3b5a02a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

default-recommendations/conditional-shortcuts.rkt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@
225225
#:attributes ([condition 1] [body 1])
226226
#:literals (when)
227227
(pattern (when c1:expr (when c2:expr nested:deeply-nested-when-expression))
228-
#:when (>= (length (syntax->list #'(c1 c2 nested.condition ...))) 3)
229228
#:with (condition ...) #'(c1 c2 nested.condition ...)
230229
#:with (body ...) #'(nested.body ...)))
231230

0 commit comments

Comments
 (0)