Skip to content

Commit 822e66b

Browse files
committed
fix arity of call to distinct?
1 parent 184fbf3 commit 822e66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xapi_schema/spec.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@
13751375
(defn unique-statement-ids?
13761376
"Spec predicate to ensure that the IDs of a list of statements are unique."
13771377
[statements]
1378-
(or (distinct? (map #(get % "id") statements))
1378+
(or (reduce distinct? (map #(get % "id") statements))
13791379
::s/invalid))
13801380

13811381
(s/def ::statements

0 commit comments

Comments
 (0)