Skip to content

Commit

Permalink
Use the idiomatic else in cond form
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsurak committed Dec 21, 2023
1 parent 64e3a40 commit b62f8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json/parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
(cond ((null? pairs) res)
((assoc (caar pairs) res)
(uniquify-keys (cdr pairs) res))
(#t (uniquify-keys (cdr pairs) (cons (car pairs) res)))))
(else (uniquify-keys (cdr pairs) (cons (car pairs) res)))))

(define (json-read-object port null ordered)
(expect-delimiter port #\{)
Expand Down

0 comments on commit b62f8d7

Please sign in to comment.