Skip to content

Commit edd685f

Browse files
committed
Simplify validation report invocation
1 parent e5d9932 commit edd685f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sitelib/text/json/schema/validators.scm

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@
7575
(define lint-mode? (*json-schema:lint-mode?*))
7676
(define ctx (make-validator-context lint-mode?))
7777
(let ((r (validator v ctx)))
78-
(or (and lint-mode?
79-
(cond ((*json-schema:validator-error-reporter*) =>
80-
(lambda (reporter) (reporter ctx) r))
81-
(else r)))
82-
r))))
78+
(cond ((*json-schema:validator-error-reporter*) =>
79+
(lambda (reporter) (reporter ctx))))
80+
r)))
8381

8482
(define (simple-json-schema-error-reporter ctx)
8583
(define out (or (*json-schema:report-port*) (current-error-port)))

0 commit comments

Comments
 (0)