Skip to content

Commit 0f29861

Browse files
Fix 1 occurrence of if-else-false-to-and
This `if` expression can be refactored to an equivalent expression using `and`.
1 parent 94d1c6c commit 0f29861

File tree

1 file changed

+1
-1
lines changed
  • typed-racket-lib/typed-racket/static-contracts/combinators

1 file changed

+1
-1
lines changed

typed-racket-lib/typed-racket/static-contracts/combinators/function.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
(and (and (not rest-arg) (null? (append mand-kw-args mand-args opt-kw-args opt-args)) typed-side?)
150150
;; currently we only handle this trivial case
151151
;; we could probably look at the actual kind of `range-args` as well
152-
(if (not range-args) 'flat #f)))
152+
(and (not range-args) 'flat)))
153153

154154

155155
(define (function-sc-constraints v f)

0 commit comments

Comments
 (0)